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

(Restoring...) question Expand / Collapse
Author
Message
Posted Saturday, January 5, 2013 3:20 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, December 18, 2014 8:03 AM
Points: 230, Visits: 1,186
Hi everyone.
Could anyone help with this one.
A database has incorrectly been restored with (RESTORE WITH NORECOVERY) configured, therefore database is in (restoring) state post completion of restore.

is the only way to bring the database back on line is to do another restore with correct recovery option configured ?

Backup is coming from Veritas backup.

cheers for any tips or advice.
Post #1403282
Posted Saturday, January 5, 2013 3:27 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 2:24 PM
Points: 40,667, Visits: 37,129
Run

RESTORE DATABASE <database name> WITH RECOVERY




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 #1403285
Posted Sunday, January 6, 2013 2:25 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, December 18, 2014 8:03 AM
Points: 230, Visits: 1,186
Thank you
Post #1403317
Posted Sunday, January 6, 2013 11:26 PM


SSC-Dedicated

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

Group: General Forum Members
Last Login: Today @ 6:05 PM
Points: 35,832, Visits: 32,505
MickyD (1/5/2013)
is the only way to bring the database back on line is to do another restore with correct recovery option configured ?


The answer is "yes and no". The command to run is the one that Gail posted with the understanding that if the database has already been restored and is just waiting for the final recovery step, then it won't actually go through another full restore. All it will do is go through the final recovery step (which usually takes less than a second on most databases) to bring the database on line.


--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1403418
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse