how to check whether windows authentication is used for sql server connect
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
hi, I have a ODBC DSN which is configured for windows authentication to connect to Sql Server. Is there any API,which can find it programatically whether DSN is using windows authentication. I want an API for vc++ win32 project. thanks
SQLConfigDataSource() will help. Data Source: Programmatically Configuring an ODBC Data Source[^] I believe "Trusted_Connection=Yes" is the keyname/value pair for SQL server. Keyname/value pairs vary by driver, so you'll also need the driver specs. For example, for the "SQL Native Client" driver: Using Connection String Keywords with SQL Native Client[^] Mark