|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, May 23, 2013 7:48 AM
Points: 1,201,
Visits: 2,126
|
|
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?
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Thursday, February 07, 2013 12:52 PM
Points: 19,
Visits: 70
|
|
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!
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Yesterday @ 3:18 PM
Points: 37,744,
Visits: 30,025
|
|
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
|
|
|
|