Steffen Schloenvoigt
4/26/2005 9:31:00 AM
Hey everybody,
since System.Data.Odbc lacks support of SQLTables,
I decided to write a little Class to call this
function by invoking it from the native odbc32.dll.
It works by now really fine except, when I try to
connect to a DSN without giving a uid and pwd.
The SQLConnect()-function seems to override the values
that are stored in the DSN. So if I connect to a MySQL-DB
I get "Access denied for user ODBC@localhost".
Is there any possibility to use the uid and pwd
that the user defined in the DSN?
Connecting with System.Data.Odbc works, so I
think it MUST be possible.
I tried different values for UID and PWD and
setting NameLengt2 and NameLength3 to both,
SQL_NTS and 0. Nothing worked.
Could anyone help me please?
With best regards
Steffen Schloenvoigt
PS: Sorry for my bad english. I did't sleep much last night ;-)