Skip to content

TechDirectArchive

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form
Home » Oracle/MSSQL/MySQL » How to enable an SA account that has been disabled
  • xvy
    Fix Error 0xc1420127: The specified image in the specified wim is already mounted for read and write access Windows Server
  • term “git” was not used as the name of a cmdlet, function, script file, or executable Program recognised
    The term “git” was not used as the name of a cmdlet, function, script file, or executable Program recognized Version Control System
  • Feautured image DualBoot
    How to create a dual-boot setup on Windows 11 Windows
  • image 190
    Creating Profiles for your AWS Access Credentials for AWS Toolkit in Visual Studio AWS/Azure/OpenShift
  • HyperV 2
    Fix no disks suitable for the cluster were found Windows Server
  • Fix this PC cannot run Windows 11
    Bypass unsupported CPU and Processor by upgrading to Windows 11 via Windows Update Virtualization
  • SSL on WAMPServer
    Setup VirtualHost with SSL on WAMP Server Linux
  • screenshot 2020 04 07 at 21.02.45
    Trend Micro WorryFree Business Security Server Setup Anti-Virus Solution

How to enable an SA account that has been disabled

Posted on 09/11/202309/11/2023 Christian By Christian No Comments on How to enable an SA account that has been disabled
Enable or disable SA acocunt

In Microsoft SQL Server, the “SA” login is a highly privileged account. This is often referred to as the “system administrator” or “superuser” login. In this article, we shall show you how to enable an SA account that has been disabled. Please see How to manage automatic login on Ubuntu Linux, how to fix Unable to connect to MSSQL Server after changing the Server name, and how to enable or disable automatic login on macOS: Fix username greyed out for automatic login.

Why would an SA Account Be Disabled?

More generally, an Administrator can disable an SA (System Administrator) account that has already been active for security purposes. If there are concerns about the integrity of the account. Such as a potential compromise or unauthorized access. The account may be disabled to prevent further security risks.

Also, the “SA” login account is disabled out of the box (by default) in Windows Authentication mode. You have to enable it manually to use it. If this is the case for you, this guide will show you the steps to enable or disable as you wish.

Note: If you select Mixed Mode Authentication during MSSQL Server installation, SQL Server Setup prompts you to set an SA login password. The SA login account is enabled in this case.

Lastly, If you see a red “X” symbol next to the SA (System Administrator) login in Microsoft SQL Server. It shows that the SA account is disabled or locked out. Follow the steps to troubleshoot and resolve this issue.

Also, see How to reset MSSQL Server SA Password on Ubuntu, how to Install Microsoft SQL Server 2019 and MSSQL Command line tools on Ubuntu Linux, and How to access shared resources from two different domains

Steps to Enable an SA Account

To enable a disabled SA account, an authorized administrator with the necessary permissions would have to perform this task using an alternative credential (administrative privileges) with the right permissions in place.

They can then access the user account management settings and re-enable the account. This process often involves navigating through security policies or user management tools.

To do this, open SQL Server Management Studio. From the Object Explorer, navigate to the “Security” folder in the Object Explorer, and then “Logins”.

Right-click on the SA login, and select “Properties”.

Why-is-the-SA-login-disabled

This will open the Login Properties sheet. In the “General” tab, ensure that the “Login” is enabled as shown below.

Enable-SA

If none of the above steps resolves the issue and you’re still unable to access the database using the SA account, it’s possible that there are more complex issues at play. In such cases, you may need to involve a database administrator or a system administrator to further diagnose and resolve the problem.

Also, do not forget to check the SQL Server logs for any error messages or information about login failures. This can provide additional insight into the issue.

FAQs relating to SA Login

Can I Still Retrieve Data from a Disabled SA Account?

Disabling an SA account usually pertains to account authentication rather than data accessibility. If the account has been disabled for security reasons. Retrieving data may still be possible through alternative means, such as accessing backups or using other authorized accounts with appropriate permissions.

What Are the Implications of a Disabled SA Account?

When an SA account is disabled. Services, applications, or systems that rely on that account for authentication or authorization may experience disruptions. It’s crucial to understand the dependencies and potential impact on system functionality before disabling an SA account.

How would you enable or disable System Administrator (SA) login in MSSQL?

– To enable sa login using T-SQL script: ALTER LOGIN sa ENABLE ; GO ALTER LOGIN sa WITH PASSWORD = 'xxasyouwish34w@'; GO
– To disable sa login using T-SQL script: ALTER LOGIN sa DISABLE ; GO

Microsoft does not recommend using SA login in the application (as it is often targeted by malicious users. Also note that the sa login cannot be removed/deleted

Conclusion

Renaming and disabling the SA account will not stop internal processes from being able to use the SA account. Therefore, if you have databases whose owners are SA, there isn’t a problem. This is a good thing, because some databases, like master and tempdb, require the SA account as the owner. Also, having SQL Server Agent jobs owned by SA will not fail either. Therefore, there’s no reason NOT to rename and disable the SA account.

I hope you found this blog post on how to enable an SA account that has been disabled helpful. Please let me know in the comment section if you have any questions.

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 SQL, Microsoft SQL Server Management Studio, Microsoft SQL Server Studio, MsSQL, Windows Server 2016

Post navigation

Previous Post: How to access shared resources from two different domains
Next Post: How to update Gitlab-runners on Windows

Related Posts

  • Encryption
    How to encrypt Microsoft SQL Server Traffic Oracle/MSSQL/MySQL
  • Migrate SQL Server database to a new SQL instance
    Migrate Veeam One Database from SQL Server 2017 to 2025 Backup
  • sql
    How to alter a DATABASE compatibility level Oracle/MSSQL/MySQL
  • installer file too long fix
    Fix long path names to files on SQL Server installation media error Oracle/MSSQL/MySQL
  • sql stuck
    How to uninstall Microsoft SQL Server Management Studio Oracle/MSSQL/MySQL
  • 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

More Related Articles

Encryption How to encrypt Microsoft SQL Server Traffic Oracle/MSSQL/MySQL
Migrate SQL Server database to a new SQL instance Migrate Veeam One Database from SQL Server 2017 to 2025 Backup
sql How to alter a DATABASE compatibility level Oracle/MSSQL/MySQL
installer file too long fix Fix long path names to files on SQL Server installation media error Oracle/MSSQL/MySQL
sql stuck How to uninstall Microsoft SQL Server Management Studio Oracle/MSSQL/MySQL
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

Leave a Reply Cancel reply

You must be logged in to post a comment.

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

Microsoft MVP

  • xvy
    Fix Error 0xc1420127: The specified image in the specified wim is already mounted for read and write access Windows Server
  • term “git” was not used as the name of a cmdlet, function, script file, or executable Program recognised
    The term “git” was not used as the name of a cmdlet, function, script file, or executable Program recognized Version Control System
  • Feautured image DualBoot
    How to create a dual-boot setup on Windows 11 Windows
  • image 190
    Creating Profiles for your AWS Access Credentials for AWS Toolkit in Visual Studio AWS/Azure/OpenShift
  • HyperV 2
    Fix no disks suitable for the cluster were found Windows Server
  • Fix this PC cannot run Windows 11
    Bypass unsupported CPU and Processor by upgrading to Windows 11 via Windows Update Virtualization
  • SSL on WAMPServer
    Setup VirtualHost with SSL on WAMP Server Linux
  • screenshot 2020 04 07 at 21.02.45
    Trend Micro WorryFree Business Security Server Setup Anti-Virus Solution

Subscribe to Blog via Email

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

Join 1,843 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.