• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 149
  • Last Modified:

Restore a database with multiple differential sets

Hi Experts, I had to restore a database from a while ago that had a full backup and several differentials (which is taken every day).

I thought when restoring a full and several DIFFs, all you had to do was to restore the FULL and the latest DIFF, but for some reason the server keps checking all the DIFFs (the ones between the FULL and the latest DIFF)

Does anyone know why that is? I am sure there must be a reason for the engine to pick all the DIFFs, NO?

TIA.
0
sir-rob
Asked:
sir-rob
1 Solution
 
ZberteocCommented:
You have to restore your FULL database WITH NO RECOVERY option first and then you need to restore ONLY THE LAST differential backup WITH RECOVERY option if you don't have to restore transaction logs as well.

If your backups were performed without issues that is what you should do and you should have no problems. Each differential backup contains all the changes from the LAST full backup performed so it will have the changes form any previous differential backups included. That is why you need only the last one..
0
 
Scott PletcherSenior DBACommented:
You are right, you only need the last one.


>> I am sure there must be a reason for the engine to pick all the DIFFs, NO? <<

I think it's just that its "logic" is not that sophisticated; it doesn't really "understand" what's going on, of course.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now