Created
July 27, 2012 14:10
-
-
Save aanari/3188223 to your computer and use it in GitHub Desktop.
MS SQL Kill Database
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 AnnoyingDB SET SINGLE_USER WITH ROLLBACK IMMEDIATE | |
GO | |
DROP DATABASE AnnoyingDB; | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment