• Home
  • Content
  • RSS
  • Log in

Password Recovery

Provide useful password recovery tricks, guides and software
  • Home
  • Password Recovery Bundle
  • Reset Windows Password
  • Product Key Finder
  • Protect My Folders

How to Login to SA Account If SQL Server Authentication Is Disabled

August 29, 2014 updated by Admin Leave a reply »

Can’t login to SQL Server with Windows Authentication? Forgot to add the local administrator account to the sysadmin server role but SQL Server is configured for Windows Authentication only? If you can change SQL Server to mixed mode Authentication, it would save you having to do a reinstall.

The SA account will be automatically created on every new SQL Server installation. But this account is disabled by default if you select Windows Authentication during setup. In this article I’ll show you how to enable mixed mode authentication after installation, and unlock / enable the SA account login if you’re locked out of a SQL Server instance.

Part 1: Enable Mixed Mode Authentication

If you can connect to SQL Server with SQL Server Management Studio, you can easily switch to mixed mode with just a few mouse clicks! However, what to do if you’re locked out of every SQL Server account and can’t login even with Windows Authentication? Here is a simple registry trick:

  1. Press the Windows key + R to bring up the Run box. Type regedit and press Enter.
  2. Navigate to the registry location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQLServer, where MSSQL10.SQLEXPRESS is the name of your SQL Server instance.
  3. In the right panel, change the LoginMode from 1 to 2. (1 = Windows authentication Only. 2 = Mixed mode.)

    sql-server-login-methods

  4. Restart your SQL Server instance for this change to take effect.

Part 2: Enable / Unlock SA Account

Even if the authentication mode is switched to SQL Server mixed mode after the installation, the SA account is still disabled and must be manually enabled. With SQL Server Password Changer you can offline enable / unlock your SA account in case your SA account is disabled, locked out or you simply forgot the password. Here are steps:

  1. First of all, you need to stop your SQL Server service so the password recovery software can access the master.mdf database offline.
  2. Download the SQL Server Password Changer on your computer. After you’ve downloaded it, double-click the setup file to install it.
  3. Start SQL Server Password Changer. Click on Open File button and select the master.mdf database for your SQL Server instance. In my example, the master.mdf file is located in C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA.

    select-master-database

  4. The program will extract all the SQL Server logins from the master.mdf database. Choose the SA account and click on Change Password button. Set a new password in the popup window and click OK.

    reset-sa-password

  5. Now you’ve successfully enabled / unlocked the SA account. Start your SQL Server service and you can now login to the SA account with your new password! It’s that easy!

Related posts:

  • SQL Server: Lost SA Password or SA Account Is Locked out
  • How to Login to SQL Server If SA Account Is Disabled
  • Login to Windows Computer with Disabled Administrator Account
  • How to Disable Windows Authentication in SQL Server

  • Previous Post: How to Bypass Windows 8 Password on HP Envy dv6
  • Next Post: How to Bypass Windows 8.1 Pro Password on Microsoft Surface Pro 3

Posted in SQL Server, Tips & Tricks

Tags: enable mixed mode authentication sql server enable sa account sql server enable sql server authentication sql server authentication login sql server login is locked out

    • Subscribe Subscribe to my blogs feed
    • Previous Entry How to Bypass Windows 8 Password on HP Envy dv6
    • Next Entry How to Bypass Windows 8.1 Pro Password on Microsoft Surface Pro 3

Back to Top

© 2025 top-password.com. Proudly powered by WordPress.