Created
November 19, 2016 09:45
-
-
Save rheid/a8f73b23e94f5f00e607a576dd470bce to your computer and use it in GitHub Desktop.
Drop multiple databases in SQL Server
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 | |
SELECT 'DROP DATABASE '+ name | |
FROM sys.databases WHERE name like 'sp16%'; | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment