Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

How to delete a database without database files.

$
0
0

Something went wrong during a backup. The backup application made a backup of a database and attached the backup, on a mounting point, to run a verify.

After running the verify it should have removed the attached database. That went wrong. It has removed the mounting point. The result is that I have an additional database, with a unknown name, that wants to use database files that cannot be found.

How can I delete this “ghost” database? I can select the database using Object explorer. When I select delete, and press OK it is removed from the object Explorer. When I press F5 it is back.

The SQL server logging shows that the database has been dropped without errors. For every I time used object explorer to delete the database. Running a query that performs a drop has the same effect.

How do I get rid of this database that isn’t a real database and causes failing maintenance jobs on SQL Server 2008 R2?

Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>