Sunday, March 1, 2009

Checksum

Checksum is only applied to an updated database when pages are read into cache, changed and written back to disk. Just turning on the CheckSum option makes no change to the pages. The checksum value is only calculated and applied once the page is read into cache, changed and written back to disk.

The only fix for a corrupt page is to delete the page and fix the links

Always use the WITH CHECKSUM option when taking backups if checksum option is on

CONTINUE_AFTER_ERROR option will force backup to do just that. CONTINUE_AFTER_ERROR will also allow a corrupt backup to restore.

Thanks to Paul S. Randal from SQLSkills for these tips. Details at

http://www.sqlskills.com/blogs/paul/post/Example-20002005-corrupt-databases-and-some-more-info-on-backup-restore-page-checksums-and-IO-errors.aspx

No comments:

Post a Comment