November 24, 2011 at 8:05 am
Could someone please explain how to corrupt my Adventureworks database? I'd like to test few DBCC commands.
November 24, 2011 at 8:14 am
I think I saw Paul Randal blog about this a while ago. He may have been writing about the undocumented (I think) DBCC PAGE. Anyway, a well targeted internet search should dig it up for you.
John
November 24, 2011 at 8:15 am
Kalen Delaney (I think - I might be wrong) had a blog post explaining how to insert a few 0s into a data page. You could also open the AW database in a hex editor and insert a few random values, although you might have a job re-attaching the DB or restarting if your values are in the wrong place.
DBCC should then detect the corruption (assuming your setting is CHECKSUM) quite easily.
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
November 24, 2011 at 8:17 am
Courtesy of Phil Brammer here -> http://www.ssistalk.com/2010/05/04/sql-server-2005-how-to-introduce-data-corruption-without-trying/
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
November 24, 2011 at 8:24 am
From the master himself : http://sqlskills.com/BLOGS/PAUL/post/Sample-corrupt-databases-to-play-with.aspx
November 24, 2011 at 8:28 am
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply