Hey guys, extreme newbie to Oracle, but intermediate user to SQL Server. I have a question with a (hopefully) simple answer.
I have written some code in VB that opens a connection to a SQL Server database and performs a BULK INSERT from a text file to a SQL table.
My question is this....if I had a duplicate table in Oracle and wanted to switch to using this table vs SQL Server, would I only need to change the connection string in the code snippet below? What would the Oracle connection string look like?
Thanks
Joe
I have written some code in VB that opens a connection to a SQL Server database and performs a BULK INSERT from a text file to a SQL table.
My question is this....if I had a duplicate table in Oracle and wanted to switch to using this table vs SQL Server, would I only need to change the connection string in the code snippet below? What would the Oracle connection string look like?
Code:
Set conn = New ADODB.Connection
conn.ConnectionString = "DRIVER=SQL Server;DATABASE=DbMain;SERVER=serv1\pro"
conn.Open
Dim strSQL As String
strSQL = "BULK INSERT [RU].[MainTab] FROM 'C:\OracleTest\Combined\Combined.txt' WITH (FIELDTERMINATOR = ',',ROWTERMINATOR = '\n') GO"
conn.Execute (strSQL)
conn.Close
Joe