0

I need to restore a database to about 2 weeks back, I have nightly backups of the database. However I'm trying to avoid losing the data between now and 2 weeks ago.

If I restore the database to 2 weeks ago, will I lose all the data between then and today?

Is there a proper way to do this, or can I just use task>restore and pick my timeline?

Thanks all

3
  • 2
    If you restore a database to a backup made 2 weeks ago, of course you lose all the data since then. If you don't want to lose it why are you restoring? Commented Mar 9, 2022 at 21:16
  • 3
    Restore is an all-or-nothing thing (excluding tables split across file groups, that's a special case), so if you have no point in time where all data was present, you can't simply restore and be done with it. Restore the DB to a separate, new database, then write queries (or use any other mechanism for data transfer, like the Import/Export Data Wizard) to transfer data from old to new or the other way around. Note that you'll also have to deal with any inconsistent or duplicated data as a result from merging (which is why restore on its own could not possibly do this). Commented Mar 9, 2022 at 21:19
  • If you restore a database to as it was 2 weeks ago then of course you'll lose the most recent 2 weeks' data - that data didn't exist two weeks ago - if it was still there then the restore would have failed, wouldn't it. Commented Mar 9, 2022 at 21:23

1 Answer 1

1

You can restore the backup to a different database, and then merge the newer data into the restored database.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.