Reset SA Password in SQL Server 2005

How to Reset SA password in SQL Server 2005?

2012-05-25 15:35:56 / Posted by Michael Eric to Files & Database
Follow @MichaelEric

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 2005 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 SA password SQL 2005 for several options.

Options 1: Change SQL 2005 SA password From a Command Prompt

To reset SQL 2005 password, you have to execute following commands from command prompt of your SQL server:

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: OSQL -S -E
3. Execute the following query: sp_password NULL, ', 'sa' GO

Now try to login to MS SQL using the new password. If you are bored of the old black screen (Command Prompt), you may like the graphical interface option below.

Options 2: Reset SQL 2005 password Using SSMS

SSMS (MSSQL Server Management Studio) is the own database management tool of MSSQL. Here are steps to reset SA password by using SSAM:

Reset SA Password Using SQL Server Management Studio

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

Options 3: Reset SA password SQL 2005 With SmartKey SQL Password Recovery

I think the easiest and most efficient way to reset SA password is to take use of SQL Password Recovery, which is designed to reset lost or forgotten user and administrator password for MS SQL server. I have used it to reset SQL SA password successful on SQL 2005. The whole process of resetting SAL SA password can be easily divided into three steps:

Reset SA password With SmartKey SQL Password Recovery

  1. 1, Run the SQL 2005 Password Recovery program and then click "Open" to load the master .mdf file.
  2. 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. 3, Enter the preferential password and click "OK".

You can now user your newly reset SQL 2005 password to login into the locked SQL Server.

Download SmartKey SQL Password Recovery:

Free Trial Buy Now

Only $54.95

Secure Download
30 Days Money Back Guarantee
downloadDownload this article as :  
comments powered by Disqus

Copyright©2007-2019 SmartKey Password Recovery. All rights Reserved.