Bill's Crappy Tech Blog
Friday, August 6, 2010
Set a database into Single User Mode
ALTER DATABASE [
URSTUPIDDATABASE
] SET MULTI_USER WITH NO_WAIT
ALTER DATABASE [
URSTUPIDDATABASE
] SET SINGLE_USER WITH NO_WAIT
or
EXEC sp_dboption '
URSTUPIDDATABASE
', 'single user', 'false'
EXEC sp_dboption '
URSTUPIDDATABASE
', 'single user', 'true'
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment