SQLUSA

Microsoft SQL Server 2000

Best Practices

 

How to put a database into single-user mode?

 

This is the command for it:

ALTER DATABASE pubs SET SINGLE_USER

If there are still users, they can use the database for the current session. Of course, you can kill the users' spid-s to force them out.

You can also do this in Enterprise Manager.

 

Best in the World in SQL Server Training
 
SQLUSA.com Home Page