Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Database Stuck in "Restoring .." Mode? Expand / Collapse
Author
Message
Posted Tuesday, December 18, 2012 1:20 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, January 23, 2013 7:03 AM
Points: 158, Visits: 239
Hello,

Anyone know how to set the database state such that it is NOT showing "Restoring .." in SSMS?

I had started scripting a sequence of RESTORE's, but closed SSMS and when I tried to continue testing later I was notified that the database was being used. No doubt due to the database being in "Restoring" mode.

Any help appreciated.


Regards

Steve
Post #1397593
Posted Tuesday, December 18, 2012 1:59 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 3:28 PM
Points: 37,730, Visits: 29,996
If the restore completed but was run WITH NORECOVERY then run RESTORE DATABASE <db name> WITH RECOVERY

If you aborted the restore part way through, drop the DB and run the restore again (or run a RESTORE with the restart option)



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1397606
Posted Tuesday, December 18, 2012 2:25 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, January 23, 2013 7:03 AM
Points: 158, Visits: 239
Had to drop the DB, but the restore then worked fine.

Thanks. :)
Post #1397619
Posted Tuesday, December 18, 2012 2:35 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, January 23, 2013 7:03 AM
Points: 158, Visits: 239
Hmmmm ... of course, now that I've dropped and restored the DB I can see that for some reason my log file has been renamed.

Not sure why this should happen.
Post #1397622
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse