Dropping a database in MS SQL Server is not a one-step process; you’ll need to do the following:
USE master; ALTER DATABASE [databasename] SET SINGLE_USER WITH ROLLBACK IMMEDIATE; DROP DATABASE [databasename];
Reference:
Dropping a database in MS SQL Server is not a one-step process; you’ll need to do the following:
USE master; ALTER DATABASE [databasename] SET SINGLE_USER WITH ROLLBACK IMMEDIATE; DROP DATABASE [databasename];
Reference: