Wednesday, June 20, 2012

SQL Script to Chage the mode to Single and Multi User

To change from multi to single mode


ALTER DATABASE [Work]   --DB Name
SET SINGLE_USER WITH
ROLLBACK IMMEDIATE


To change from single to multi mode


ALTER DATABASE [Work]   --DB Name
SET MULTI_USER
GO

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.