Tuesday, August 19, 2008

A SQL Server connection string that uses windows authentication

"Server=mySQLServerName;Database=MyDBName;persist security info=False;integrated security=SSPI;"

Just replace "mySQLServerName" with the name of the SQL server, and "MyDBName" with the name of the database.

No comments: