Home > DeveloperSection > Forums > Database stuck in restoring and snapshot are not available
jayprakash sharma
jayprakash sharma

Total Post:117

Points:821
Posted on    September-10-2015 8:22 AM

 MSSQL Server Database  MSSQL Server 
Ratings:


 1 Reply(s)
 411  View(s)
Rate this:
I tried to restore my database from a snapshot. This usually took around a minute to complete the last couple of times. When I did it today, it didn't complete for around 30 minutes and the spid was in a suspended state. I stopped the query and now my database is stuck in restoring state and my snapshot is unavailable. Am I screwed?
USE master;
RESTORE DATABASE QA from 
DATABASE_SNAPSHOT = 'QA_Snap_Testing';
GO


Mayank Tripathi
Mayank Tripathi

Total Post:397

Points:3117
Posted on    September-10-2015 8:54 AM

I would NOT recommend this unless you really can afford to lose the db and restore from an earlier backup. Our solution was to restart the services. Everything popped back up, but it was as if a restore were never attempted. However, it is a very low priority server and we can go back to any backup, as it is used as a staging server and the actual data in it isn't that important.

This has actually happened to this server several times, i suspect it has to do with the fact that we're restoring over a slow network.

One thing to check is if any other spids are connected to either the database or the snapshot.

Don't want to miss updates? Please click the below button!

Follow MindStick