Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

Delete database that's stuck in restoring mode

$
0
0

Hi,

one of the databases got stuck in restoring mode. I want to delete that without stopping sql service. I tried detaching and then deleting the physical files but didn't work. It just came back. I also tried deleting the database and then deleting files, but no luck.

I tried Restore database with recovery but it failed saying cannot run as the db is in recovery mode. I cannot find SPID to kill either.

Is there any other way to delete this stuck database without restarting the server??


Viewing all articles
Browse latest Browse all 4689

Trending Articles



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