Summary
If all the administrative access to the local SQL Server is lost, it is possible to put the server into a Single-User Mode and give administrative access to all local administrator accounts.
Then, use SQLCMD to set a new password for the "sa" account before restoring normal operation.
Solution
- Stop all programs and services connected to the SQL server.
- Open a command prompt as administrator on the system running the SQL server and enter the following commands:
-
-
net stop MSSQLSERVER
This will stop the SQL Server service
-
net start MSSQLSERVER /m /f
This will start the SQL Server in minimal configuration mode and limit connections to a single connection. It also gives the local administrator access to the server.
- sp_password @new = 'skf', loginame = 'sa'
Change the password for the user "sa" to "skf". - go
Apply the changes -
exit
Exit SQLCMD
- net stop MSSQLSERVER
Stop the server running with the m and f flags. - net start MSSQLSERVER
Start the SQL Server normally.
-
net stop MSSQLSERVER
Now you can log in as sa with the password skf.
It is recommended to change the password to a secure password.
Contacting SKF Technical Support Group
For further assistance please open a support case using the Technical Support group's self-help portal at www.skf.com/cm/tsg. Once your support case is submitted, a technician will contact you to begin working on your issue. For urgent issues we are available at these times by phone:
-
Monday through Friday, 5:00 a.m. to 4 p.m. Pacific Time -
Phone: +1 800 523 7514 within the US or +1 858 496 3627 outside the US. -
Monday through Friday, 8:00 a.m. to 4:00 p.m. Central European Time -
Phone: +46 31 337 65 00. - Monday through Friday, 7:30 a.m. to 4:30 p.m. India Standard Time -
Phone: +60 16 699 9506.
Comments
0 comments
Please sign in to leave a comment.