DaveMac1960
IS-IT--Management
I'm probably wasting breath here, but if anyone could help me out it would be much appreciated.
I'm trying to connect to an Informx 7.x database from a .net application. Below is the code in question:
Public Const VisionConn = "DSN=Vision;Provider=SQLOLEDB;user ID=userID;password=password;DATABASE=v001"
Dim cnn As New OleDb.OleDbConnection(VisionConn)
Dim cmd As OleDb.OleDbCommand
Dim rdr As OleDb.OleDbDataReader
cmd = New OleDb.OleDbCommand( _
"SELECT * FROM drmast " _
& "ORDER BY drno ", cnn)
cnn.Open()
When the code executes, I get a "Login failed for 'userID'; Invalid connection string attribute" error. Well the login is valid so I figure that part is bogus. Naturally .net does not give me any indication which connection attribute is invalid.
Thanks a bunch in advance,
Dave
I'm trying to connect to an Informx 7.x database from a .net application. Below is the code in question:
Public Const VisionConn = "DSN=Vision;Provider=SQLOLEDB;user ID=userID;password=password;DATABASE=v001"
Dim cnn As New OleDb.OleDbConnection(VisionConn)
Dim cmd As OleDb.OleDbCommand
Dim rdr As OleDb.OleDbDataReader
cmd = New OleDb.OleDbCommand( _
"SELECT * FROM drmast " _
& "ORDER BY drno ", cnn)
cnn.Open()
When the code executes, I get a "Login failed for 'userID'; Invalid connection string attribute" error. Well the login is valid so I figure that part is bogus. Naturally .net does not give me any indication which connection attribute is invalid.
Thanks a bunch in advance,
Dave