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
- Go to the command prompt of the server and type in command prompt osql –L
- Copy full name of SQL Server and type:
- OSQL -S -E
- Execute the following query:
- sp_password NULL, ‘’, ’sa’
Options 2: Reset SA password using SSMS
- 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 with SmartKey SQL Password Recovery
- Run the SQL Password Recovery program and then click “Open” to load the master .mdf file.
- 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.
- Enter the preferential password and click “OK”.
- 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.