Skip to content

Instantly share code, notes, and snippets.

@aanari
Created July 27, 2012 14:10
Show Gist options
  • Save aanari/3188223 to your computer and use it in GitHub Desktop.
Save aanari/3188223 to your computer and use it in GitHub Desktop.
MS SQL Kill Database
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