How to Reset SA password in SQL Server 2005?

Last Post 25 Jul 2012 08:03 PM by Briteny. 0 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
Briteny
New Member
New Member

--
25 Jul 2012 08:03 PM
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.

Options 1: Change SQL SA password From a Command Prompt

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


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 SA 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:

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.

That is all! You have now reset SA password for your instance of SQL Server 2005. Please note the password change for your records, as remote administration of your database relies heavily on this particular user.

Options 3: Reset SA password 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:


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".

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



Acceptable Use Policy
---