Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Migration and Copy_Only backup...


SQL Migration and Copy_Only backup...

Author
Message
quackhandle1975
quackhandle1975
SSCrazy
SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)

Group: General Forum Members
Points: 2754 Visits: 1227
Hi,

quick sanity check here: migrating from SQL 2005 to 2008 R2. I'm looking to take a full bk up on Source 2005 instance and copy/ restore to 2008. I am then propsing to apply the checkdb/reindex/update stats/compatibility/etc scripts on the migrated databases.

During the migration I will set read-only on source, take a differential and apply this to target instance to get latest data. My question (sorry bit longwinded) is can I take a COPY_ONLY backup (on the target instance) after the checkdb/reindex/update stats/compatibility/etc scripts but before I apply the differential but it won't impact the differential?

qh

Who looks outside, dreams; who looks inside, awakes. – Carl Jung.
muthukkumaran Kaliyamoorthy
muthukkumaran Kaliyamoorthy
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1225 Visits: 4838
quackhandle1975 (2/25/2014)
Hi,

quick sanity check here: migrating from SQL 2005 to 2008 R2. I'm looking to take a full bk up on Source 2005 instance and copy/ restore to 2008. I am then propsing to apply the checkdb/reindex/update stats/compatibility/etc scripts on the migrated databases.

During the migration I will set read-only on source, take a differential and apply this to target instance to get latest data. My question (sorry bit longwinded) is can I take a COPY_ONLY backup (on the target instance) after the checkdb/reindex/update stats/compatibility/etc scripts but before I apply the differential but it won't impact the differential?

qh


If I got your question.

You are planning to take a full backup and restore it to target with norecovery and then apply differential with recovery.

If this is the case, you cannot take any backup in leaving in restoring mode.

Muthukkumaran Kaliyamoorthy

Helping SQL DBAs and Developers >>>SqlserverBlogForum

GilaMonster
GilaMonster
SSC-Forever
SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)

Group: General Forum Members
Points: 47194 Visits: 44362
quackhandle1975 (2/25/2014)
I'm looking to take a full bk up on Source 2005 instance and copy/ restore to 2008. I am then propsing to apply the checkdb/reindex/update stats/compatibility/etc scripts on the migrated databases.


CheckDB/reindex/stats/compat level/etc require that the full backup was restored WITH RECOVERY. Once the database has been recovered, no further backups can be applied. To restore that differential that you're planning to take, you'd have to restore the full backup again, from scratch, then restore the diff, then run all your checkDB, reindex, update stats, set compat level, etc.


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


quackhandle1975
quackhandle1975
SSCrazy
SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)

Group: General Forum Members
Points: 2754 Visits: 1227
Muthukkumaran/Gail,

Much appreciated, glad I asked, it did seem far too simple in my head! Crazy

Now I'm looking for a version of sql server where a database in recovery can still be used for checkdb/reindex/etc. ;-)

Rgds,

qh

Who looks outside, dreams; who looks inside, awakes. – Carl Jung.
DeWayne_McCallie
DeWayne_McCallie
SSC-Enthusiastic
SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)

Group: General Forum Members
Points: 124 Visits: 1187
We usually run the diff restore with recovery. Then kick off your scheduled CheckDB job to verify all restored DB's are clean.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search