Skip to content

Instantly share code, notes, and snippets.

@alanbacelar
Last active March 8, 2019 11:40
Show Gist options
  • Save alanbacelar/a41cba6e38d0225e5b56820379a56ffb to your computer and use it in GitHub Desktop.
Save alanbacelar/a41cba6e38d0225e5b56820379a56ffb to your computer and use it in GitHub Desktop.
SQL Server

SQL Server Snippets


Force drop database

USE master;
ALTER DATABASE [database_name] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
DROP DATABASE [database_name];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment