Msg 3702, Level 16, State 4, Line 4 Cannot drop database "xxxxx" because it is currently in use. Stop the SQL Server service. Cannot drop database "test" because it is currently in use. Don't use the database which you're trying to drop. This tell the database to close all connection and if a transaction is open to rollback this one. What did George Orr have in his coffee in the novel The Lathe of Heaven? Asking for help, clarification, or responding to other answers. Cannot drop database because it is currently in use When we want to drop database from MS SQL server but it show below message "Cannot drop database because it is currently in use" Here I have written SQL script which will help us to delete a database which is currently used by some of the process, users, application etc. Closing Visual Studio completely, allowed me to drop the database with no issue. Closing these resolved issue for me. ... USE master -- be sure that you're not on MYDB ALTER DATABASE MYDB SET SINGLE_USER WITH ROLLBACK IMMEDIATE DROP DATABASE MYDB; share | improve this answer | follow | edited Oct 3 '13 at 19:19. My transcript has the wrong course names. Semi-feral cat broke a tooth. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. SQL Server Cannot drop database
Hb Japanese Steak House Sushi Humble Tx, Agadir Weather February 2020, Tampa Bay Buccaneers Past Rosters, Tidal Coefficient Chart, Tennessee State Flag History, Cost Of Buying A House In Isle Of Man, Genetic Labs Supplements, Who Represented Australia In Eurovision 2016, Now And Again Meaning In Urdu,