SQL Server 2005 authentication methods
SQL Server 2005 must authenticate a user before the client is allowed to perform any activities within the database. In this article we will see the various options for user authentication.

In the book titled Develop An Accounting Package using VB, we have discussed how exactly you should use authentication methods and when to use the various modes. The discussion also includes how to configure the options.
SQL Server security is integrated with Windows domain security. This enables authentication based on user and group memberships. This authentication technique make it much easier because of the familiarity we have with windows authentication.
There are two types of authentication:
In the Express Edition Windows authentication is not available.
To use domain authentication only, select the Windows Authentication Mode option button. In this option only users with a domain account can access the server.
With combined authentication, SQL Sever first checks to see if a new login is a SQL Server login, if the login exists, SQL Server then uses the password provided to authenticate the user. If the login does not exist, it uses Windows authentication.
When auditing is enabled, user logins are recorded in the Windows application log, the SQL Server error log, or both, depending on how you configure logging for SQL Server. The available auditing options include:

In the book titled Develop An Accounting Package using VB, we have discussed how exactly you should use authentication methods and when to use the various modes. The discussion also includes how to configure the options.
SQL Server security is integrated with Windows domain security. This enables authentication based on user and group memberships. This authentication technique make it much easier because of the familiarity we have with windows authentication.
There are two types of authentication:
1. Windows authentication
Use authentication based on Windows domain accounts only. In this case only users with a domain account of Windows can access the server.2. SQL Server and Windows authentication mode
When we combine Windows and SQL Server authentication, users in Windows domains can access the server using a single account and users with SQL Server logins can be logged.Authentication process of a Windows login
After the user has logged in to the domain using either Kerberos (this is the preferred authentication protocol for a windows domain) and NTLM (Windows NT lan manager authentication) the client can request access to a specific SQL Server. The client sends identification to the server and based on the server's list of users (stored in the sysxlogins table on the master database), the user is granted or denied access to SQL Server.Configuring Authentication
We can configure authentication and auditing options with the Security page of the Server Properties dialog box. The security page can be accessed in the left pane of the Server Properties dialog box.Setting Authentication Mode
As mentioned earlier SQL Server security is integrated with Windows domain security. This allows for authentication based on user and group memberships. To use combined authentication, select the SQL Sever and Windows Authentication mode option button. In this option users in Windows domains can access the server using a domain account, and other users can be logged on using a SQL Sever logon ID.In the Express Edition Windows authentication is not available.
To use domain authentication only, select the Windows Authentication Mode option button. In this option only users with a domain account can access the server.
With combined authentication, SQL Sever first checks to see if a new login is a SQL Server login, if the login exists, SQL Server then uses the password provided to authenticate the user. If the login does not exist, it uses Windows authentication.
Setting Auditing Level
Auditing allows tracking user access to SQL Server. You can use auditing with both authentication modes as well as with trusted and untrusted connections.When auditing is enabled, user logins are recorded in the Windows application log, the SQL Server error log, or both, depending on how you configure logging for SQL Server. The available auditing options include:
- None
- Disables auditing
- Failed Logins Only Audits only failed login attempts (the default setting)
- Successful Logins Only Audits only successful login attempts
- Both Failed And Successful Logins Audits both successful and failed login attempts
Windows vs SQLServer Authentication
Windows authentication is generally preferred because it provides an optimal level of integration with Windows 2000. User and group accounts from Windows are granted or denied access to SQL Server. Windows 2000 authenticates the user when the user logs on to the network. Because the password is authenticated at network login, SQL Server does not need to know or verify the password of a user. Windows Authentication provides the following advantages over SQL Server Authentication.- Windows Authentication can grant group accounts access SQL Server, thus minimizing the over head of login administration
- Users are authenticated by Windows 2000, resulting in a secure authentication over a network
- Users could be able to use the same user credentials for network and database access
- Users could be able to use the same user credentials for network and database access
- Audited events can be tracked to a network user.
Understanding the SQL Authentication Mode
SQL Server Authentication is preferred in the following scenarios.- The user is not logging in to a Windows domain
- Your network does not have a Windows 2000 domain
- It is not feasible to manage all Internet users on the windows domain
- You prefer to manage them separately from your normal Windows domain administration
- An application is acquired from a vendor that requires SQL Server
Asp.net Articles
- How to implement form validation using ASP.Net 2.0 Validation Controls
- SQL server security
- Database software
- Performing Custom Validation using the CustomValidator Control (C# 2005)
- Ajax a brief tutorial of its usage
- How to use CompareValidator Control in ASP.net 2.0
- SQL Server 2005 authentication methods
- state management in an asp.net application

Most Viewed
Azure Q & A
Azure Platform
Grid-View
GridView CommandField example
Details-View
GridView and DetailsView Master/Detail page using SqlDataSource control
POCO
POCO overview and advantages - POCO class, Entity Framework in Enterprise Applications
Entity Framework
Query entity data model using linq to entities
Array List
Difference between arraylist and list collection
Web Services
How to create a Web service using Visual Studio.net
Form-View
FormView DataBound Event
Object Oriented Programming
Calling base class constructor in C#
Linq
Convert a sequence to a generic list using ToList()method
Project Ideas
Project ideas for students
AccountingSoftware
Accounting Software
MVC
Creating an ASP.Net MVC 3 application
.Net
Using assemblies in .net applications
ASP .Net
How to implement form validation using ASP.Net 2.0 Validation Controls