M
Michael.Suarez
I am currently making the jump from VB6 to C#. We have a login prompt
that returns an ADO connection. Eventually I will have to re-write this
login prompt in C#, but for now I have to use it for a C# program that
needs to be finished soon. Basically, I call the prompt, get the ADO
connection, create an SQL connection, and try to set the
SQLConnection's ConnectionString to the Adodb.connection's connection
string, so that I can use the SQLConnection throughout the project.
This is where I get the error.
The line of code:
SQLConn.ConnectionString = AdoConn.ConnectionString;
raises ArgumentException and I am not sure why.
Can anyone clarify?
Thanks,
Mike
that returns an ADO connection. Eventually I will have to re-write this
login prompt in C#, but for now I have to use it for a C# program that
needs to be finished soon. Basically, I call the prompt, get the ADO
connection, create an SQL connection, and try to set the
SQLConnection's ConnectionString to the Adodb.connection's connection
string, so that I can use the SQLConnection throughout the project.
This is where I get the error.
The line of code:
SQLConn.ConnectionString = AdoConn.ConnectionString;
raises ArgumentException and I am not sure why.
Can anyone clarify?
Thanks,
Mike