Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form
Home » Oracle/MSSQL/MySQL » Change from SQL Server and Windows Authentication Mode to Windows authentication Mode
  • Webp.net resizeimage 2
    Add or Remove Network Interface from a VM in Azure AWS/Azure/OpenShift
  • hgjk
    Understanding the different types of Proxy Servers Web Server
  • Screenshot 2020 05 19 at 02.50.47
    Fix Administrative templates retrieved from the local computer does not show up Network | Monitoring
  • ShieldServersSmall
    How to track your device performance and health via Windows Security in Windows 10 Windows
  • Top 10 communication software for Mac 2021
    Top 10 communication software for Mac 2021 Reviews
  • asdfgh
    All Group Policies (GPO) available to configure Microsoft Edge settings Windows Server
  • maxresdefault 2
    AWS CodeCommit: A Guide to Efficient Usage Version Control System
  • How do I disable credentials from Remote Desktop
    Disable credential Prompts for Remote Desktop Connections Windows

Change from SQL Server and Windows Authentication Mode to Windows authentication Mode

Posted on 28/02/202428/02/2024 Christian By Christian No Comments on Change from SQL Server and Windows Authentication Mode to Windows authentication Mode
SQL-server-authentication-mode

SQL Server supports two authentication modes: Windows Authentication Mode and Mixed Mode (Windows Authentication and SQL Server Authentication). These modes determine how users connect to the SQL Server instance and authenticate their identity. In this article, we shall discuss how to change  change the server authentication mode “SQL Server and Windows Authentication Mode” in SQL Server by using SQL Server Management Studio. Please see how to Fix Microsoft Edge Not Responding on Windows 11.

Also, see How to enable an SA account that has been disabled, how to Install Microsoft SQL Server 2019 and MSSQL Command line tools on Ubuntu Linux, and How to reset MSSQL Server SA Password on Ubuntu.

Windows Authentication Mode

In the Windows Authentication Mode also referred to as the Windows Integrated Security enables users to connect to MSSQL Server using their Windows credentials. This mode leverages the security features of the Windows operating system, allowing users to log in with their Windows username and password.

It helps simplifies user management as SQL Server relies on Windows user accounts, and provides a single sign-on experience for users already authenticated to the Windows domain.

SQL Server Mixed Mode Authentication

While the Mixed Mode allows users to connect to MSSQL Server using either Windows Authentication or SQL Server Authentication. With SQL Server Authentication, users provide a SQL Server login and password for authentication, which is stored within SQL Server. This is practical when users may not have Windows accounts or when connecting from non-Windows platforms.

This Also introduces some security risk in managing additional credentials on the SQL Server thereby introducing potential security risk.

Here is how to fix “Unable to connect to MSSQL Server after changing the Server name“, How to uninstall Microsoft SQL Server on Windows, and VPC, Subnet, NACL, Security Group: Create your own Network on AWS from Scratch [Part 2].

1: Change SQL Server Authentication Mode in Management Studio

I have deliberately installed Microsoft SQL server via the mixed mode just to be able to reproduce these steps for you.

Lanch the SQL Server Management Studio from the Start Menu.

launch-SSMS

Connect to the SQL Server. See How to uninstall Microsoft SQL Server Management Studio.

Connect-to-SQL-Server

In SQL Server Management Studio (SSMS) Object Explorer, right-click the server, and then select Properties.

SQL-Server-Properties

As you can see below, we have SQL Server and Windows Authentication Mode selected. We have to change this to Windows Authentication Mode only. and click OK.

Windows-Authentication

Yes, before restarting SQL services, let’s do some account clean up and disable the SA account.

Restart-SQL-Server

Disable SQL SA Account

Note: If Windows Authentication mode is selected during installation, the sa login is disabled and a password is assigned by setup.

Therefore, we will have to disable the SA account and other accounts created during setup.To do this, expand the “Security” and Login as well. Right click on the SA account and select Properties.

SA-SQL-Properties

Click on Deny permission to the DB and Disable Login.

DEny-Conenction-and-Login-to-SA

Delete SQL User Account

I would also like to delete some other user accounts I added. Right click on the account and select “Delete” as shown below.

Delete-Other-Account

Confirm Deletion as shown below.

Confirm-Delete-SQL-User

Restart SQL Server Services.

In Object Explorer, right-click your server, and then select Restart. If SQL Server Agent is running, it must also be restarted.

You can do this also from the Service Manager. Search for SQL Service Service and restart it.

Method-1-restart-SQl-service

Alternatively, you could use the SQL Server 2022 Configuration Manager to restart SQL services.

SQL-Configuration-manager

Restart SQL Server Services.

Restart-SQL-Server-services

2: Change SQL Server Authentication Mode in Registry Editor

We can also change SQL Server authentication mode by editing LoginMode value data in Registry Editor.

To do so, click Start and type “regedit” in Run box. Press Enter to open Registry Editor. Expand to open and find “LoginMode” at the right side of window.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL16.\MSSQLServer
We-have-changed-to-windows-authentication-already

Double click LoginMode and a new dialog pops up. Set Value data as 2 if you wish to use the Mixed mode form of authentication. I am fine with the Windows Authentication mode and this is why I am not changing this to the value of 2.

Dword value

.

Lastly, do not forget to restart

Restart-SQL-Server-services

Conclusion

Selecting the right authentication mode depends on your security requirements and the overall architecture of your SQL Server deployment. It’s recommended to use Windows Authentication Mode whenever possible for enhanced security and centralized user management. However, Mixed Mode can be beneficial in scenarios where a combination of Windows and SQL Server logins is necessary.

I hope you found this article “Change from SQL Server and Windows Authentication Mode to Windows authentication Mode” useful. Please feel free to leave a comment below.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Oracle/MSSQL/MySQL Tags:Microsoft Windows

Post navigation

Previous Post: How to Fix Microsoft Edge Not Responding on Windows 11
Next Post: Install SQL Server 2022 Express and SQL Server Management Studio

Related Posts

  • SQL EvaluationExpired
    Windows could not start the SQL Server service on local computer 17051: A network-related or instance-specific error occurred while establishing a connection to SQL Server Oracle/MSSQL/MySQL
  • sql
    How to alter a DATABASE compatibility level Oracle/MSSQL/MySQL
  • mysqlhero
    How to reset MySQL Root password Oracle/MSSQL/MySQL
  • Enale FIPS compliance mode on Windows
    How to enable FIPS mode on Windows Server Oracle/MSSQL/MySQL
  • Screenshot 2020 06 22 at 23.27.40
    How to fix unable to install msodbcsql17 tool on Ubuntu Oracle/MSSQL/MySQL
  • SQL Loves Linux 2 Twitter 002 640x358 1
    Install Microsoft SQL Server 2019 and MSSQL Command line tools on Ubuntu Linux Oracle/MSSQL/MySQL

More Related Articles

SQL EvaluationExpired Windows could not start the SQL Server service on local computer 17051: A network-related or instance-specific error occurred while establishing a connection to SQL Server Oracle/MSSQL/MySQL
sql How to alter a DATABASE compatibility level Oracle/MSSQL/MySQL
mysqlhero How to reset MySQL Root password Oracle/MSSQL/MySQL
Enale FIPS compliance mode on Windows How to enable FIPS mode on Windows Server Oracle/MSSQL/MySQL
Screenshot 2020 06 22 at 23.27.40 How to fix unable to install msodbcsql17 tool on Ubuntu Oracle/MSSQL/MySQL
SQL Loves Linux 2 Twitter 002 640x358 1 Install Microsoft SQL Server 2019 and MSSQL Command line tools on Ubuntu Linux Oracle/MSSQL/MySQL

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • Webp.net resizeimage 2
    Add or Remove Network Interface from a VM in Azure AWS/Azure/OpenShift
  • hgjk
    Understanding the different types of Proxy Servers Web Server
  • Screenshot 2020 05 19 at 02.50.47
    Fix Administrative templates retrieved from the local computer does not show up Network | Monitoring
  • ShieldServersSmall
    How to track your device performance and health via Windows Security in Windows 10 Windows
  • Top 10 communication software for Mac 2021
    Top 10 communication software for Mac 2021 Reviews
  • asdfgh
    All Group Policies (GPO) available to configure Microsoft Edge settings Windows Server
  • maxresdefault 2
    AWS CodeCommit: A Guide to Efficient Usage Version Control System
  • How do I disable credentials from Remote Desktop
    Disable credential Prompts for Remote Desktop Connections Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,839 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.