Merging MDF files on SQL databases after restoring from a backup

Tags:
MDF
SQL Server
SQL Server database
I recently restored our SQL Server database from a backup, but unfortunately I used a Wednesday backup instead of Thursday, and it is now Friday. Is there a way to merge MDF files, to join all the data together because, as of now, we are missing Thursday’s data.

Answer Wiki

Thanks. We'll let you know when a new response is added.

You would need to restore the Thursday backup then move the rows into the database. If you use identity values for your records you’ll need to change the identity values of the rows in the Thursday backup so that they don’t conflict with the new rows which have been inserted.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Gent01
    I don't know how to do what you are asking, but if all else fails you could restore another backup to a new database and write some sql scripts to copy over the data.
    1,870 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following