|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 4:02 AM
Points: 5,244,
Visits: 11,264
|
|
Comments posted to this topic are about the item How to Create a Corrupt SQL Server Database
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Monday, April 29, 2013 10:15 AM
Points: 2,261,
Visits: 758
|
|
nice - not sure it's got too many practical implementations other than showing a junior how to run and correct checkdb, but it's still nice to have in your arsenal
MVDBA
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 4:02 AM
Points: 5,244,
Visits: 11,264
|
|
Hi Michael, as the article mentions it's ideal for testing DBCC scripts against and also for practising dealing with a corrupt database.
It also gives you an idea of what the data pages actually look like to
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Thursday, June 06, 2013 2:10 AM
Points: 324,
Visits: 532
|
|
Thanks - this would be a nice test for a practical interview if hiring for a DBA. Corrupt a bunch of things in advance and show the interviewee the DBCC CHECKDB results and see how many of them he/she can fix in 15 minutes.
Ben
^ Thats me!
---------------------------------------- 01010111011010000110000101110100 01100001 0110001101101111011011010111000001101100011001010111010001100101 01110100011010010110110101100101 011101110110000101110011011101000110010101110010 ----------------------------------------
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Tuesday, September 18, 2012 4:58 AM
Points: 27,
Visits: 116
|
|
Really enjoyed the article. Thanks. Great demo for my advanced training labs. Have done this in Oracle several times and is interesting to see how SQL server pages map out by comparison. There are many more control fields in Oracle but the design drivers are exactly the same - how do you delploy object data into linear records in an ordinary file - and then how do you find that data. /BW/ PS. screwed up the feedback - sorry. Meant to be 5 stars, Idiot!
Men who wish to know about the world must learn about it in its particular details. - Heraclitus
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Tuesday, June 11, 2013 10:25 AM
Points: 485,
Visits: 1,569
|
|
this is really good stuff. thank you.
btw, this is also good for using to test a database mirror. i had to create a broken db once for testing failover.
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 4:02 AM
Points: 5,244,
Visits: 11,264
|
|
dioscoredes (5/4/2012) Really enjoyed the article. Thanks. Great demo for my advanced training labs. Have done this in Oracle several times and is interesting to see how SQL server pages map out by comparison. There are many more control fields in Oracle but the design drivers are exactly the same - how do you delploy object data into linear records in an ordinary file - and then how do you find that data. /BW/ Thank you for your feedback. For more info on in row and off row data in SQL Server see the following MS link
dioscoredes (5/4/2012) PS. screwed up the feedback - sorry. Meant to be 5 stars, Idiot! LOL grr never trust an Oracle DBA
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: 2 days ago @ 11:24 AM
Points: 319,
Visits: 728
|
|
michael vessey (5/4/2012) nice - not sure it's got too many practical implementations other than showing a junior how to run and correct checkdb, but it's still nice to have in your arsenal
Maybe but it could be taken beyond just knowing to run DBCC commands. Back around 1999-2000 I had an issue similar to this but it would cause a query to fail and disconnect the session and of course, checkdb did fix it. The real challenge came when I was tasked with a root cause analysis. I thought by fixing it I was free and could move on. Not so, my boss wanted to know the how and why it happened. So perhaps this script and information are useful in that they could be helpful in developing investigative techniques.
Cheers
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Yesterday @ 10:50 PM
Points: 572,
Visits: 762
|
|
Nice and simple. Thanks.
Usually beginners comes on forum to find solution from experts and sometimes things are not meant for experts as such. However experts correction and appreciation makes them feel part of community.
Good work.
Cheers.
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Tuesday, June 04, 2013 8:50 AM
Points: 862,
Visits: 1,440
|
|
I loved this article. Very interesting to some of us who are learning the SQL Server internals and need to simulate disaster recovery.
Best regards,
Andre Guerreiro Neto
Database Analyst http://www.softplan.com.br MCITPx1/MCTSx2
|
|
|
|