I make a window application in C# to create a database on the SQL Server 2005.
In first step I run my program and create a database on Server. Its all going correct.
But if I give the same name to database as given before on the same running application i have written code which ask to delete database or not. If I click 'Yes' button of message box it will gives me an error
that "You can't drop the database because it is currently in used". I already dispose the connection.
But it still give an error.
...
Go to the complete details ...