logo
SQL Server Change SQL Server Authentication Mode

How to Change Server Authentication Mode in SQL Server

By Hally | Last Updated

How to change SQL Server authentication mode? For example, how to connect to SQL Server with Mixed Authentication mode instead of Windows authentication mode?

Now two effective methods are offered in this passage. No matter you could login into SQL Server 2005/2008/2012/2014/2016 or not, changing SQL authentication mode can be done with them. And generally, the authentication mode is changed from Windows Authentication mode to Mixed Authentication Mode.

Method 1: Change SQL Server Authentication Mode in Management Studio

This method requires SQL Server logon with Windows authentication at first. Therefore, if you have connected to SQL Server with Windows Authentication mode, you just need to change logon settings in SQL Server Management Studio.

Step 1: Open SQL Server Management Studio from Start Programs Microsoft SQL Server 2005/2008 SQL Server Management Studio.

Choose Windows Authentication mode, and click Connect to login SQL Server.

login SQl Server using Windows Authentication mode

Step 2: Right click Server in Object Explorer and select Properties.

open SQL Server object properties

Step 3: In Server Properties dialog, select Security and pick "SQL Server and Windows Authentication mode" in the right panel of window. And then click "OK" to save changes.

select SQL Server and Windows Authentication Mode

Step 4: Click Security Logins sa in SQL Server Management Studio, and right click "sa", select Properties.

open SQL Server Sa account properties

Step 5: In Login Properties dialog, type password and confirm password for "sa" account below SQL Server authentication.

set password for SQL Sa account

And tap Status option, check Enabled under Login to enable SQL Server logon with "sa".

enable SQL Server SA account for logon

Method 2: Change SQL Server Authentication Mode in Registry Editor

As long as we could login into computer with administrator, this method would help to change SQL Server authentication mode by editing LoginMode value data in Registry Editor.

Step 1: Click Start and type "regedit" in Run box. Press Enter to open Registry Editor.

Step 2: Expand to open HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer, and find "LoginMode" at the right side of window.

Step 3: Double click LoginMode and a new dialog pops up. Set Value data as 2.

set SQL Server login mode by registry editor

"1" means Windows Authentication Mode, and "2" means SQL Server and Windows Authentication Mode or Mixed Mode Authentication.

Step 4: Close the dialog and Registry Editor.

Step 5: Restart SQL Server Services.

restart SQL Server services

Step 6: Start SQL Server Management Studio, and choose SQL Server Authentication, type sa password to login SQL Server.

login SQL Server with SQL Server Authentication mode

 

Related Articles: