Even though nothing is using it I am unable to detach a database because it is use.
Cannot detach the database 'DEMO' because it is currently in use.
I have tried rebooting and get the same message.
Even though nothing is using it I am unable to detach a database because it is use.
Cannot detach the database 'DEMO' because it is currently in use.
I have tried rebooting and get the same message.
Have you tried checking the "Drop Connections" box when you detach it?
Don't forget to check "Drop Connections" from "Detach Database" window, otherwise it's very simple and just choose detach from the menu, see the image below:
This command should drop all connections, then allow you to detach.
ALTER DATABASE SET SINGLE_USER WITH ROLLBACK_IMMEDIATE