Cannot drop database because it is currently in use

before deleting your database. If you still have this problem, try to put

ALTER DATABASE MyDatabaseName

SET SINGLE_USER

WITH ROLLBACK IMMEDIATE

Comments