Launch week: the Season Pass & Fundamentals Week are 50% off — ends in 13d 00h 38mSee the sale

A Gentle Reminder That Corruption Stinks

Seriously

DBCC CHECKDB (YourDatabaseHere) WITH NO_INFOMSGS, ALL_ERRORMSGS;

Oh. It's broken.
Oh. It’s broken.

Brent says: normally, we don’t post client screenshots on the blog because it’s hard to sanitize the sensitive data. This time, not so much. Storage took care of this for us.

Free, 3× a week

Get my new posts by email

Three posts a week, plus a Monday roundup of the best database news from around the web.

25 comments

  1. I see your client has found the new SQL Server burn-before-reading feature for truly sensitive data.

      1. Since we don’t know who your customer is, does it matter? Or perhaps talk in terms of how you would reproduce this error to prove the source.

  2. It’s actually a work of art. This should be put on a t-shirt or something. 🙂
    PS: Thankful it’s not *my* data….

  3. Not to be picky but who says this is corrupt and not just someone sanitizing the data. Did the DBCC actually show the error and if it did, which one. I assume it did or why the blog post but just checking.

  4. I think the ascii cross symbol adds a nice touch. Have you tried running DBCC DBEXORCISE? (“THE POWER OF CODD COMPELS YOU!”)

  5. Lesson 1. Don’t be complacent
    Lesson 2 Check that you are CheckDB’ing
    Lesson 3. Now where did I put those backups – well at least make sure you can access them.

    Thanks Erik.

        1. You have a couple options. You could download a hex editor and try to corrupt a database on your own, or you could head over here and download a sample corrupt database. If you follow along with the challenge, you can see a few different kinds of corruption that can strike, and how to fix them.

  6. I would love to hear the generic recovery steps that were taken for this .. I presume it was restore from sound backups (if you knew which backups were sound).

Leave a comment

Your email address will not be published. Required fields are marked *