ODBC Connection String for SQL Server

C

Chlaris

Dear all,

If I'm using SQL Server with "Windows only" authentication, how to write the
SQL connection string ?
When I use "SQL Server and Windows" authentication, I write the SQL
connection string like this :

strSQLConnection = "ODBC;DRIVER={SQL Server};SERVER=" & strServerName & _
";DATABASE=" & strDbName & ";UID=" &
strUserName & ";PWD=" & strPassword

But the above code doesn't work for "Windows only" authentication.
Please help. Thanks.

Chlaris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top