|
|
|
SSC-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
|
|
|
|
|
SSC-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
|
|
|
|
|
SSC-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. :)
|
|
|
|
|
SSC-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.
|
|
|
|