Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Transaction Log Corruption Expand / Collapse
Author
Message
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: Monday, October 6, 2014 7:17 AM
Points: 1,379, Visits: 2,690
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 ?

Thoughts?

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

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

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


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 4:08 PM
Points: 40,177, Visits: 36,580
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. http://www.sqlservercentral.com/articles/65804/ and see the list of Do Nots.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
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