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 ««12

Database restore Expand / Collapse
Author
Message
Posted Tuesday, January 8, 2013 4:25 AM


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:22 PM
Points: 42,443, Visits: 35,497
Ah, no, different terms.

Cleanly shut down means that SQL had time to commit or roll back all active transaction and time to write all dirty pages to disk before either the SQL service was stopped, the database detached or taken offline. It means that no recovery process is needed when the DB starts up again.

There's nothing wrong with an unclean shutdown, SQL probably does those more often than clean ones (imagine shutting down the server while there's a transaction that's been running 3 hours active, SQL won't be allowed to take 3 hours before stopping)

Any time a database has been shut down (cleanly or not), it is safe to take the files (data and log) and attach elsewhere. It is not safe to copy the files of an active, online, in-use database.



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 #1404138
Posted Tuesday, January 8, 2013 4:31 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 7:47 AM
Points: 5,229, Visits: 9,448
Brilliant - learned something else! Perhaps I should have used the word "gracefully"? Anyway, I've edited my first post by striking out the word "cleanly".

John
Post #1404143
Posted Tuesday, January 8, 2013 3:24 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, April 22, 2014 7:29 AM
Points: 8, Visits: 19
DB files attached, exported to new SQL 2008 DB and now vCenter upgrade kicking and running.
Thanks all for your help and comments.

Post #1404465
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse