When trying to restore the sql database it fails and says that
Exclusive access could not be obtained because the database is in use.

The database has been deleted so I don't know how it thinks it is in use.

Can anybody help.