

For named instance, enter command sqlservr.exe -m -c -s To start default instance in, enter command sqlservr.exe -m -c Start an elevated command prompt (run as administrator), move to the correct directory for example,Ĭd \Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn Hence it is important to use the appropriate sqlserver.exe that corresponds to your instance Please be aware that starting the sqlservr.exe from different folder will start up your instance with the different service pack. If you have a named instance, it would be another copy of sqlservr.exe located in its corresponding binn folder. By default, the sqlservr.exe is located at C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn. Start database engine from command prompt using sqlservr.exe Restart the SQL Server database engine service in SSCMĪfter you are done, remove the -m you added at the startup option and restart the service again for multi user mode. Insert –m (don’t forget the semicolon and don’t leave any space) in front of the existing startup option. In the properties window, select the Advanced tab, scroll down until you see Startup Parameters In SQL Server Services, right click on the corresponding SQL Server database engine service you want to start in single user mode and select Properties Please make sure the SQL Server agent service is stop before starting the SQL Server in single user mode Open up SQL Server Configuration Manager (SSCM) There are a few ways of starting SQL Server instance in single user mode. The SQL instance is required to be started in single user mode in order to restore the master database from the backup.

This T-SQL command does not work for master database. If there are users connected to it and you need to restore the database immediately, you can set database to single mode with immediate rollback option to roll back all incomplete transaction and disconnect all other user connection. If the database already exists in the instance, the database needs to be set to single user mode to prevent other users connects to it.

Restoring database requires exclusive access to the database.
