HTH, jens Suessmeyer.
http://www.sqlserver2005.de
|||
The database server is configured for both Windows and database server authentication. The original Db-library C program version can connect using either authentication type.
The ODBC ported C program version can connect using a Windows authentication connect string with: SQLDriverConnect(hdbc, GetDesktopWindow(), "DSN=host_ODBC", SQL_NTS, NULL, 0, NULL, SQL_DRIVER_NOPROMPT.It cannot connect using a database server authentication connect string of "DSN=host_ODBC_DB;UIDDBMS=usercode2;PWDDBMS=password2".
The host_ODBC odbc data source was configured for Windows authentication. The host_ODBC_DB odbc data source was configured for database server authentication.
Why does database server authentication fail?|||
Which ODBC driver do you use?
Can you try using "UID" and PWD" instead of "UIDDBMS" and "UIDPWD"?
This posting is provided "AS IS" with no warranties, and confers no rights.