How to start SQL server 2000 in Single User Mode
November 26th, 2008 by Gabriel
Single User mode allows only one single user to connect to the database.
Even if SQL server is in Single User Mode, you can connect the SQL Query Analyzer with the SA user.
Single user mode specifies that only one user at a time can access the database. Basically it is used for maintenance purposes.
If any other users are connected to the database and you switch the database to single user mode then their connections to the database will be closed without any warning message.
Following are the steps to start SQL server in Single User mode -
On your server :
Start >> Run >> type in CMD and hit Ok >> it will open up Command Prompt >> here execute the following command
net stop MSSqlServer
>> it will stop the SQL service >> now to start SQL in Single User mode execute following command
sqlservr -m
####
How to Set a single database into Single User Mode :-
You can set a single database into single user mode using an alternative procedure but this process cannot be used to set the MASTER database into single user mode.
# Connect to SQL Server using SQL Query Analyzer with SA user
# Execute the following command -
alter database database-name set SINGLE_USER
where “database-name” is the actual name of the database.
This cannot be used to place the databases MASTER, MSDB or TEMPDB in single user mode.
# To set the database back into normal multi-user mode use, execute the following command -
alter database db-name set MULTI_USER
- 3 Comments »
- Posted in Microsoft SQL Server
