SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Restoring Differential backup issue


Restoring Differential backup issue

Author
Message
Tac11
Tac11
Mr or Mrs. 500
Mr or Mrs. 500 (565 reputation)Mr or Mrs. 500 (565 reputation)Mr or Mrs. 500 (565 reputation)Mr or Mrs. 500 (565 reputation)Mr or Mrs. 500 (565 reputation)Mr or Mrs. 500 (565 reputation)Mr or Mrs. 500 (565 reputation)Mr or Mrs. 500 (565 reputation)

Group: General Forum Members
Points: 565 Visits: 1132
Hi all,
Took Full backup
created Table1
Took Tran Log backup
Created Table2
Took Diff backup
Created Table 3
Took Tran backup
Now I am creating another database using above.
how can I restore all 3 backups, can somebody write steps Please in details.
Because I can restore fullback up (creating another db) no recovery, could apply 1st tran backup with no recovry but when it comes to apply differential backup, it wont let me do it.
Greg Charles
Greg Charles
SSCertifiable
SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)

Group: General Forum Members
Points: 5619 Visits: 5932
You can't restore a differential after restoring a log backup. The order of restores must be:

1. Restore full backup
2. Restore differential backup
3. Restore log backup

So, in your case, if you wanted to create a new database with both tables, you'd restore the full backup with no recovery, then the differential backup with no recovery, then the second log backup with recovery.

Greg
Jeffrey Williams 3188
Jeffrey Williams 3188
SSCertifiable
SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)

Group: General Forum Members
Points: 7901 Visits: 9971
Greg Charles (9/23/2013)
You can't restore a differential after restoring a log backup. The order of restores must be:

1. Restore full backup
2. Restore differential backup
3. Restore log backup

So, in your case, if you wanted to create a new database with both tables, you'd restore the full backup with no recovery, then the differential backup with no recovery, then the second log backup with recovery.


Or - restore the full backup, the first and second log backups. No need for the differential backup in this scenario.

Note: the only reason to use differentials is to reduce the number of files being restored or allow for not performing a full backup every night (e.g. weekly full, daily differentials - frequent log backups).

Jeffrey Williams
Problems are opportunities brilliantly disguised as insurmountable obstacles.

How to post questions to get better answers faster
Managing Transaction Logs

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