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
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