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.
Loading
yee lauPosted Sep 24, 2010, 11:49 PM
yee lauPosted Sep 22, 2010, 6:34 AM
And use command prompt is also an easy way to reset lost sa password. See the commands below:
Method: 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.
karthick kumarPosted Sep 21, 2010, 8:55 AM
Method1:
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.