Connecting to SQL Server Using Windows Authentication
The SQL adapter enables adapter clients to use Windows Authentication to establish a connection with SQL Server. To use Windows Authentication adapter clients must specify an empty user name and password. For more information about connecting to SQL Server using Windows Authentication, see Connecting to SQL Server in Visual Studio.
To enable adapter clients to use Windows Authentication to connect to SQL Server, you must perform the following tasks on the computer running SQL Server.
|The steps provided here are for SQL Server 2008 and SQL Server 2005. These steps may vary for SQL Server 2000. Refer to SQL Server documentation for more information.|
Start SQL Server Management Studio and in the Connect to Server dialog box, specify a SQL Server name and administrator credentials to connect to the server.
In Object Explorer, expand the SQL Server.
Expand Security, right-click Logins, and then click New Login.
In the Login – New window, for the Login name text box, specify the Windows user name in the format domain\username.
In the left pane, click User Mapping. In the right pane, select a database to associate with the user. In the Database role membership for box, select the db_owner check box.
After you have added the user to SQL Server, the user can connect to SQL Server using the SQL adapter, logging in with a blank username and password.