Recovering transaction log from corrupt SQL database
Posted
by Don Kirkham
on Stack Overflow
See other posts from Stack Overflow
or by Don Kirkham
Published on 2010-03-18T14:47:06Z
Indexed on
2010/03/18
14:51 UTC
Read the original article
Hit count: 311
sql
|transaction-log
We have a database that is backed up weekly in simple mode. Yesterday, we had a crc error corrupt the mdf file and we were unable to save it. I restored the backup from last week, but now we have a gap from the time of the backup to the time of the restore. Since I have the ldf file from that database, is there any way to "replay" that transaction log to fill in the gap?
I have tried reattaching the ldf file to the recovered mdf file, but SQL will not allow me to do that. (It just creates a new ldf file with a different name when I reattach the database.)
Any ideas would help. This is a lot of data to lose and although it is not critical data, I'd like to get it back (as well as learn as well as learn how to do it.)
© Stack Overflow or respective owner