TRY IT:
By default, it will be in multi-user mode.
Under certain circumstances, you may need to start an instance of SQL Server in single-user mode using the -m startup option. For example, you can change server configuration settings or repair a damaged primary database or other system database. Both steps require running an instance of SQL Server in single user mode.
To change a database from multiple users to one user:
ALTER DATABASE TEST_DB SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
To change a database from one user to several users:
ALTER DATABASE TEST_DB SET MULTI_USER WITH ROLLBACK IMMEDIATE;
source share