Mar 27, 2001 #1 getsathya Programmer Mar 12, 2001 2 IN I have Oracle 7.3 Installed on my machine. I am doing ADO programming in VB to connect to a database on this. What should I write for the Provider ? conobj.provider = ? I can connect to MS SQL server by giving "SQLOLEDB"
I have Oracle 7.3 Installed on my machine. I am doing ADO programming in VB to connect to a database on this. What should I write for the Provider ? conobj.provider = ? I can connect to MS SQL server by giving "SQLOLEDB"
Mar 27, 2001 #2 Fosters Programmer Mar 6, 2001 16 GB Cn.open "Driver={Microsoft ODBC for Oracle};" & _ "Sever=OracleServer.World;" & _ "Uid=;Pwd=;" you might have to use Driver={Microsoft ODBC Driver for Oracle} Upvote 0 Downvote
Cn.open "Driver={Microsoft ODBC for Oracle};" & _ "Sever=OracleServer.World;" & _ "Uid=;Pwd=;" you might have to use Driver={Microsoft ODBC Driver for Oracle}
Mar 27, 2001 #3 chiph Programmer Jun 9, 1999 9,878 US getsathya - Don't forget to install the Oracle client. The Microsoft OLEDB/ODBC/ADO/TLA drivers use them. Chip H. Upvote 0 Downvote
getsathya - Don't forget to install the Oracle client. The Microsoft OLEDB/ODBC/ADO/TLA drivers use them. Chip H.
Mar 27, 2001 #4 Parke Programmer Jan 10, 2001 51 US Dim cn As ADODB.Connection Dim rs As ADODB.Recordset Set cn = New ADODB.Connection Set rs = New ADODB.Recordset cn.Open "Provider=MSDAORA;Data Source=DatabaseAlias;User ID=UserID;Password=UserPassword" 'OLE DB connection rs.CursorLocation = adUseClient rs.Open "TableName", cn, adOpenStatic, adLockReadOnly, adAsyncFetch If cn.State = adStateOpen Then MsgBox "opened oracle" End If This is what I use. Hope it helps, Parke Upvote 0 Downvote
Dim cn As ADODB.Connection Dim rs As ADODB.Recordset Set cn = New ADODB.Connection Set rs = New ADODB.Recordset cn.Open "Provider=MSDAORA;Data Source=DatabaseAlias;User ID=UserID;Password=UserPassword" 'OLE DB connection rs.CursorLocation = adUseClient rs.Open "TableName", cn, adOpenStatic, adLockReadOnly, adAsyncFetch If cn.State = adStateOpen Then MsgBox "opened oracle" End If This is what I use. Hope it helps, Parke
Mar 27, 2001 #5 Swany Programmer Feb 19, 2001 208 US Also, when using the oracle ODBC driver you need to pass a DBQ= and a SERVER= The Microsoft ODBC for Oracle works with only SERVER= dsn="Driver={Oracle ODBC Driver};DBQ=test;SERVER=test;uid=scott;pwd=tiger;" Upvote 0 Downvote
Also, when using the oracle ODBC driver you need to pass a DBQ= and a SERVER= The Microsoft ODBC for Oracle works with only SERVER= dsn="Driver={Oracle ODBC Driver};DBQ=test;SERVER=test;uid=scott;pwd=tiger;"