Efficient ways to reset lost sql sa password

sql server , sql , sa password Corpus Christi, United States
  • 6 years ago

    Have you ever forgot or lost your SQL Server sa password? Did you hava any ideals to reset your lost sa password? Or choosed to reinstall MS SQL Server on your PC again? I once forgot my SQL sa password and I reinstalled SQL Server at last, because I failed to find some good methods to solve the problem. What annoying and terrible experience it is! In order to avoid reinstalling SQL Server for a second time, i collect some methods and try them by myself, to reset SQL Server Password for sa account.

    Method 1: Reset SQL Server sa password by Windows Authentication

    If Builtin/Administrator is present in SQL Server, you can login with an ID which is member of Administrators group and reset sa password in SQL Server. Just do as follows:

    Step 1. Login into SQL server using Windows Authentication. Step 2. In Object Explorer, open Security folder, open Logins folder. Right Click on sa account and go to Properties. Step 3. Type a new SQL sa password, and confirm it. Click OK to finish.

    This way is easilily to reset the sql server sa or other account password, but you need to have the valid Builtin/Administrator account.

  • 6 years ago

    And here is another way that maybe also could reset ours lost sa password, but i have problems to verify this way, can somebody give some ideas about the method.

    Method 2: Use the Query Windows in Management Studio to reset sql sa password

    Step 1. Open SQL Server Management Studio Step 2. Open a new query Step 3. Type the follow commands and excute:

      GO
      ALTER LOGIN [sa] WITH DEFAULT_DATABASE=[master]
      GO
      USE [master]
      GO
      ALTER LOGIN [sa] WITH PASSWORD=N'NewPassword' MUST_CHANGE
      GO
    

    The NewPassword is set for your SQL Server sa account.

  • 6 years ago

    Use command prompt is also an easy way to reset lost sa password. See the commands below:

    Method 3: Use Command Prompt to reset your lost SQL sa password

    Step 1. Open a command prompt (Start -> Run -> cmd) Step 2. Type the follow commands, and press Enter after each line: Osql -S yourservername -E 1> EXEC sp_password NULL, 'yourpassword', 'sa' 2> GO

    Of course, you can reset your other sql account password, just by changing the 'sa' to your another sql account name.

  • 6 years ago

    Emm, if there still have trouble on resetting your sql sa password, you can try to get help from some sql server password recovery software, which can easily and instantly reset lost sql sa password. Sql sa password reset tool http://www.passwordunlocker.com/sql-server-password-recovery.html

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Weeks of coding can save you hours of planning.”