Yes. When I restore the DB with the 10am full backup, it opens fine. I then tried to replace the ldf of 10am with the one of 1pm, thus causing the error 5173.
Main Topics
Browse All TopicsHello
for different reasons, we backup our DBs with DPM every 4 hours. The backups take place at 6, 10, 14, 18, 22 and 2am. One of my (fortunately test-) DB got a corrupted mdf file at 1pm. I restored the DB with the backup of 10am. When I try to use the mdf of 10am with the ldf of 1pm, I get an error 5173, which is correct. Is it possible to bypass this problem, e.g. to recover the DB state of 10am, and then to somehow replay the log until 1pm ?
Thank you for your help
Pierrot
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Will take a look around, but it is highly unlikely that you will be able to do what youre asking.
The best practice is to do a full backup once every 24 hours and transaction log backups incrementally (every 4 hrs in your case). So when the database became corrupt you would restore the full backup from the night before and all the subsequent transaction log backups and that would have gotten you back to 1300.
Oops, it seems that I misinterpreted the way the Data Protection Manager works: the Full Backup is that of 22pm, then it takes a log backup every 4 hours. So the last backups I have are a Full Backup of 22pm and a log backup of 10am. Is it possible to replay the last log (from 10am to 1pm) which is not corrupted ?
Have no idea if this will work, but it is worth a try. In a test environment do the following:
1. Restore the full backup from the night before
2. Restore all of the transaction log backups (till 1000 right?)
3. Detach the database then copy the good ldf file over the restored one.
4. Then try to re-attach the database.
Never tried this before so give it a shot an let me know.
If that does not work you might want to try a 3rd party software to try to read the log. There are programs from Apex and RedGate that read log files. Both companies offer 30 day free trials of the software so no money will need to be spent.
Again the full backup will need to be restored and then the transaction logs. Then use the 3rd party software to create a large update script to hopefully make up the difference for the missing data.
Thanks alot for your suggestions. Unfortunately, I always get some kind of error. But good news: I found a way to do it (using AdventureWorks, of course):
- before starting the recovery process, do a tail-log backup. This works even if the database cannot be started because of a corrupted mdf file. The tail-log backup backups the actual log file.
- then restore the database to the last full backup or the last available backup. Important: use the DPM option "Leave the dtabase NOT OPERATIONAL".
- When this step is complete, restore the tail-log. Just use "restore log AdventureWorks from disk='tail-log file location'"
- that's it. If you use Data Protection Manager, the replica is now inconsistent. Run a sync job with consistency check.
Pierrot
Business Accounts
Answer for Membership
by: tony_kPosted on 2009-08-04 at 06:52:20ID: 25013776
Are all of the backups mentioned above full backups?