Sep 2
2023
Delete multiple databases in MSSQL
drop databases query
USE master; Go SELECT 'DROP DATABASE ['+ name + ']' FROM sys.databases WHERE name like 'PREFIX%'; GO
drop databases query
USE master; Go SELECT 'DROP DATABASE ['+ name + ']' FROM sys.databases WHERE name like 'PREFIX%'; GO