Single-user mode can be set for the entire SQL Server or for individual databases using the SQL Server Management Studio. Once this mode has been set, only one connection to the SQL Server or specified database is allowed. Some administrative tasks can only be performed if single-user mode has been set.
Procedure
Single-User Mode for the SQL Server
The SQL Server (MSSQLSERVER) Properties dialog box opens.
Only one connection to the server is now possible.
When single user mode has been set, only one connection to the server is permitted. Therefore, keep the following in mind:
If the SQL Server Agent is running, it occupies the only connection available to the server and you will be unable to establish a connection with the SQL Server Management Studio. Stop the SQL Server agent to enable a connection with the SQL Server Management Studio.
Single-User Mode for a Database
The Database Properties dialog box appears.
Once single user-mode has been set, only one connection to the database is permitted.