How drop a database after connecting new one
i am tried drop database after connecting new database.I want to drop old database, there is message appeared"cannot drop database because it is currently in use".I connected new database, then why i cannot drop database?
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Soft CornerRank #1,221 · 1.5K reputationPosted Apr 1, 2011, 8:55 PM EDT
Can you show your code here, might be you have open connection in code & if that so, close existing one and reopen your connection.
Suthish NairRank #92 · 22.8K reputationPosted Apr 5, 2011, 8:36 AM EDT
You need to release or kill all user sessions and all threads before droping the database.
Sam HobbsRank #107 · 20.5K reputationPosted Apr 5, 2011, 1:03 PM EDT
Suthish NairRank #92 · 22.8K reputationPosted Apr 5, 2011, 7:25 PM EDT