Hello,
I hope someone can help with this --its driving me crazy!!
My trusty old machine crashed and I have a new XP professional which is so far a lot less than trusty. I have installed VB6 and a local Oracle database. When I run my VB app, it fails on the opening connectionstring with the message: Method 'Open' of object '_connection' failed
I am connecting using the following:
Global gl_cnn As ADODB.Connection
Set gl_cnn = New ADODB.Connection
gl_cnn.ConnectionString = "Provider=MSDAORA;" & _
"Data Source=" & sDataSource & ";" & _
"user ID=" & sUserID & ";" & _
"password=" & sPassword
gl_cnn.Open This is where it fails.
I know that the references in the project are correct(or at least that thye are the same as they were on the old machine), and that the Oracle data base works since I can access it with SQL*Plus and Toad. I have also tried other connection string options found on this forum and at avarious web sites with nthe same error message result.
My only guess is that something is missing in my installation of the OS or of VB or in the registry. I have verified that Microsoft ODBC for Oracle driver is installed (if it matters, its date, 08/29/2002, is earlier than that on my other machine).
If anyone can suggest why the open method fails in my connection, or point me to other troubleshooting options, I'd really appreciate it! Thanks!
I hope someone can help with this --its driving me crazy!!
My trusty old machine crashed and I have a new XP professional which is so far a lot less than trusty. I have installed VB6 and a local Oracle database. When I run my VB app, it fails on the opening connectionstring with the message: Method 'Open' of object '_connection' failed
I am connecting using the following:
Global gl_cnn As ADODB.Connection
Set gl_cnn = New ADODB.Connection
gl_cnn.ConnectionString = "Provider=MSDAORA;" & _
"Data Source=" & sDataSource & ";" & _
"user ID=" & sUserID & ";" & _
"password=" & sPassword
gl_cnn.Open This is where it fails.
I know that the references in the project are correct(or at least that thye are the same as they were on the old machine), and that the Oracle data base works since I can access it with SQL*Plus and Toad. I have also tried other connection string options found on this forum and at avarious web sites with nthe same error message result.
My only guess is that something is missing in my installation of the OS or of VB or in the registry. I have verified that Microsoft ODBC for Oracle driver is installed (if it matters, its date, 08/29/2002, is earlier than that on my other machine).
If anyone can suggest why the open method fails in my connection, or point me to other troubleshooting options, I'd really appreciate it! Thanks!