Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase ««12

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



Group: General Forum Members
Last Login: Saturday, December 3, 2016 5:18 AM
Points: 45,619, Visits: 44,147
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, MVP, M.Sc (Comp Sci)
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



Group: General Forum Members
Last Login: Today @ 6:59 AM
Points: 7,033, Visits: 14,724
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".

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