May 21, 2019

How to Reset Sa Password in Sql Server 2005

SA user (abbreviation for “System Administrator”) is the administrative login for MS SQL Server. Have you ever thought about such situation: what will you do if you forgot SQL Server SA password ? Reinstall MS SQL Server or just drop everything and walk out of here. For whatever reason you forgot SQL Server SA password and the windows account told you don’t have the permissions to change SA password, this article will demonstrate Resetting SQL SA password for several options.

Steps

Options 1: Change SQL SA password from a command prompt

  1. Go to the command prompt of the server and type in command prompt osql –L
  2. Copy full name of SQL Server and type:
  3. OSQL -S -E
  4. Execute the following query:
  5. sp_password NULL, ‘’, ’sa’
  6. GO


Options 2: Reset SA password using SSMS

  1. Open SSMS management console. This is usually under Start -> All Programs -> Microsoft SQL Server 2005 -> SQL Server Management Studio Express.
  2. Connect to your instance of SQL Server via Windows Authentication.
  3. Once open, navigate to “Logins” object under the “Security”. Once expanded, right-click on the ‘SA’ user, and choose Properties.
  4. Now, enter desired password in front of “Password” and “Confirm Password” field and click OK.


Options 3: Reset SA password with SmartKey SQL Password Recovery

  1. Run the SQL Password Recovery program and then click “Open” to load the master .mdf file.
  2. Select SA user name to reset the forgotten SA password, or select any other user name which you forgot the password. Click “Change Password” to reset password.
  3. Enter the preferential password and click “OK”.

Tips

  • The easiest and most efficient way to reset SA password is to take use of SQL Password Recovery. You can use SmartKey SQL Password Recovery to reset SQL SA password successful on SQL 2005. If you need, get it from SmartKey Official site.

You may like our other article on How to Bypass a Sql Server Login Failure .

If you have any question, let us know in the comments.

Source www.wikihow.com 

About Bhattarai Diwas (thenepaltech) 213 Articles
I'm an Engineer and have Bachelor's Degree in Electrical and information technology. Right now I am working as a software developer in Germany. All in all I love programming and I am a tech geek.