We recently dealt with an issue where the customer lost their MS SQL database “SA” password, and the “SA” account was disabled. They were unable to alter the structure of any of their databases.
We found this link which helped us reset the SA password.
Here are the steps we took.
- Logged onto the server and downloaded “PSexec”. We used this link to download it. Download
- Unzip the files and copy them to your “C:\windows\system32” folder. There will be a number of files and we needed more than just “psexec.exe” to perform this action, so we copied all the files from the download to that directory.
We used this video to learn to us PSExec properly.
- Stop the database. We went into the MSSQL Server Manager and right-clicked on the top item and selected “stop”.
- We right-clicked and opened the command prompt as an administrator.
- We typed in the following command.
PsExec -s -i ” C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\ssms.exe”
I had to search for “ssms.exe” to find the path I needed. The path in the first article was different than ours.
This will launch MS SQL Server Manager as “System”, so you are above SA.
- Once MS SQL Server Manager was launched we were able to go to the “Security” tab, enable SA’s account, and change the password.
- We logged back in a SA and everything was working.
Let us know if this helped you…