SQL SERVER – FIX : Error : 3702 Cannot drop database because it is currently in use – Part 2

Following error is very generic error and I have previously written SQL SERVER – FIX : Error : 3702 Cannot drop database because it is currently in use.

Msg 3702, Level 16, State 3, Line 2
Cannot drop database “DataBaseName” because it is currently in use.

One of the reader Dave have posted additional information in comments. I will list his advise here. First read the original post here.

If you are still getting the error after you try using
USE master
GO
DROP DATABASE (databaseName)
GO

Close SQL Server Management Studio completely. Open it again and connect as normal. Now you will be able to drop the database with
USE master
GO
DROP DATABASE (databaseName)
GO

Reference : Pinal Dave (https://blog.sqlauthority.com)

SQL Error Messages, SQL Scripts
Previous Post
SQL SERVER – 2005 – Find Nth Highest Record from Database Table – Using Ranking Function ROW_NUMBER
Next Post
SQL SERVER – 2005 – What is CLR?

Related Posts

11 Comments. Leave new

Leave a Reply