Friday, December 7, 2012

How to start SQLServer in single user mode?

How to start SQLServer in single user mode?

In some bad situations like whenever your master databse or other system databases got damaged you might need to start the SQL Server in single user mode in order to recover/restore.

Starting SQL Server in single-user mode enables any member of the computer's local Administrators group to connect to the instance of SQL Server as a member of the sysadmin fixed server role

How will I do that?

  1. Click on Start button à Run
  2. Type services.msc and then enter (this opens service applet)
  3. Goto the SQLService and double click on it and stop it.
  4. Type  “-m” in Startup Parameters box

  1. Now start the service
Connect to the sql server through SSMS and restore/recover Master database or any system database, after recovering don’t forget to remove “-m” from Startup Parameter.

No comments:

Post a Comment