I have a database in SQL Server 2008 that I am trying, unsuccessfully, to delete. I open management studio, right click on the database, choose delete from the menu, and one of two things happens. One, SQL Server tells me that the database can't be deleted because it is in use or two, it "acts" as if it is going to work -- the "executing" wheel just spins and spins but nothing happens.
I've tried to use the following without success:
DROP DATABASE dbname;
I get the same results with that as with using the Delete pick from the menu.
I've also tried the following but it just tells me that the query is executing and it never stops
ALTER DATABASE MyDatabaseName
WITH ROLLBACK IMMEDIATE
When I stop that query from executing, there are a bunch of lines in the output window which tell me "Nonqualified transactions are being rolled back. Estimated rollback completion: 100%".
I have stopped SQL Server and restarted it and I've stopped everything else that I can think could possibly connect to it. Any ideas?