Last active
August 29, 2015 14:24
-
-
Save benmccallum/7c9a4b61097ec759aa5d to your computer and use it in GitHub Desktop.
MSSQL Server - Kill all processes on a DB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE master; | |
GO | |
ALTER DATABASE AdventureWorks | |
SET SINGLE_USER | |
WITH ROLLBACK IMMEDIATE; | |
ALTER DATABASE AdventureWorks | |
SET MULTI_USER; | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment