Drop Database
Use dbname; ALTER DATABASE dbname SET SINGLE_USER WITH ROLLBACK IMMEDIATE; Use master; DROP DATABASE dbname;