Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Transaction Log Corruption Expand / Collapse
Posted Tuesday, February 5, 2013 7:30 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, October 13, 2016 1:22 AM
Points: 1,416, Visits: 2,931
Hi All

After doing some Research & Testing on corruption, I have a question.

>> Database is corrupt
>> Determined that it's the transaction log that is corrupt. Confirmed this by checking the error log and found "SQL Server detected a logical consistency-based I/O error: incorrect checksum............................ldf"

I am well aware that detaching a corrupt database is not a good thing.

If I know that SQL was shutdown cleanly - Is it then semi-ok to detach the database and then re-attach with attach_rebuild_log ?


Post #1415834
Posted Tuesday, February 5, 2013 8:45 AM


Group: General Forum Members
Last Login: Friday, February 7, 2014 4:39 AM
Points: 20, Visits: 77
It's of course risky... but if only the log is corrupted then detaching the db then do a attach single file db *should* work. I'm not saying that you should do this or that it definitely will work....but it should :)
be careful!
Post #1415906
Posted Tuesday, February 5, 2013 8:52 AM



Group: General Forum Members
Last Login: Saturday, December 3, 2016 5:18 AM
Points: 45,619, Visits: 44,147
How would you get an incorrect checksum in the log anyway?
Checksums are on database pages in the data file.

There are instances of log corruption, that's not one of them.

Absolutely do not detach and delete the log. Unless you want to convert corrupt and online database into database that won't attach.

Take a look at this article. and see the list of Do Nots.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1415912
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse