{"id":744,"date":"2010-02-26T12:02:00","date_gmt":"2010-02-26T12:02:00","guid":{"rendered":"\/blogs\/paul\/post\/Sample-corrupt-databases-to-play-with.aspx"},"modified":"2017-04-13T12:47:43","modified_gmt":"2017-04-13T19:47:43","slug":"sample-corrupt-databases-to-play-with","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/paul\/sample-corrupt-databases-to-play-with\/","title":{"rendered":"Sample corrupt databases to play with"},"content":{"rendered":"<p><span style=\"font-family: verdana, geneva; font-size: small;\">The very worst piece of advice I ever saw on the Internet was in response to someone asking on a SQL newsgroup <em>&#8216;how can I create a corrupt database?&#8217;<\/em>. The first response was:<\/span><\/p>\n<blockquote><p><span style=\"font-family: verdana, geneva; font-size: small;\"><em>When I want to corrupt a database to play with, I go into the data center, find a hard-drive and flick the power switch on-and-off quickly a few times.<\/em><\/span><\/p><\/blockquote>\n<p><span style=\"font-family: verdana, geneva; font-size: small;\">This was closely followed by a bunch of replies (including mine) saying <em><strong>&#8216;Noooooooooooo!!!!&#8217;<\/strong><\/em><\/span><\/p>\n<p><span style=\"font-family: verdana, geneva; font-size: small;\">So, for a few years now I&#8217;ve provided a zip file with a bunch of pre-corrupted databases in &#8211; so you can test your consistency checking jobs, and experiment with corrupt databases without having to create them yourself by destroying hard-drives, or less daft means. You can find the main zip file\u00a0at the top of\u00a0our <\/span><a href=\"https:\/\/www.sqlskills.com\/sql-server-resources\/sql-server-demos\/\"><span style=\"font-family: verdana, geneva; font-size: small;\">Past Events<\/span><\/a><span style=\"font-family: verdana, geneva; font-size: small;\"> resources page, along with a link to a <a href=\"https:\/\/www.sqlskills.com\/blogs\/paul\/conference-corruption-demo-scripts-and-example-corrupt-databases\/\">blog post<\/a> which explains the various databases and demo scripts.<\/span><\/p>\n<p><span style=\"font-family: verdana, geneva; font-size: small;\">Several times I&#8217;ve been asked to provide SQL Server 2008 versions of the two databases which demo system table corruption. Well, that task has finally bubbled to my long-list of blog posts and website updates. There&#8217;s now a second, smaller zip file which has 2008-only versions of the <span style=\"font-family: 'courier new', courier;\">DemoFatalCorruption1<\/span> and <span style=\"font-family: 'courier new', courier;\">DemoFatalCorruption2<\/span> databases, which showcase corruptions that prevent <span style=\"font-family: 'courier new', courier;\">DBCC CHECKDB<\/span> from running.<\/span><\/p>\n<p><span style=\"font-family: verdana, geneva; font-size: small;\">Let me know if you have any problems (playing with the backups :-)<\/span><\/p>\n<p><span style=\"font-family: verdana, geneva; font-size: small;\">Enjoy!<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The very worst piece of advice I ever saw on the Internet was in response to someone asking on a SQL newsgroup &#8216;how can I create a corrupt database?&#8217;. The first response was: When I want to corrupt a database to play with, I go into the data center, find a hard-drive and flick the [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,30,34,35,38,62],"tags":[],"class_list":["post-744","post","type-post","status-publish","format-standard","hentry","category-checkdb-from-every-angle","category-corruption","category-dbcc","category-disaster-recovery","category-example-scripts","category-on-disk-structures"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Sample corrupt databases to play with - Paul S. Randal<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sqlskills.com\/blogs\/paul\/sample-corrupt-databases-to-play-with\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Sample corrupt databases to play with - Paul S. Randal\" \/>\n<meta property=\"og:description\" content=\"The very worst piece of advice I ever saw on the Internet was in response to someone asking on a SQL newsgroup &#8216;how can I create a corrupt database?&#8217;. The first response was: When I want to corrupt a database to play with, I go into the data center, find a hard-drive and flick the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/paul\/sample-corrupt-databases-to-play-with\/\" \/>\n<meta property=\"og:site_name\" content=\"Paul S. Randal\" \/>\n<meta property=\"article:published_time\" content=\"2010-02-26T12:02:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-04-13T19:47:43+00:00\" \/>\n<meta name=\"author\" content=\"Paul Randal\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul Randal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/sample-corrupt-databases-to-play-with\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/sample-corrupt-databases-to-play-with\/\",\"name\":\"Sample corrupt databases to play with - Paul S. Randal\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#website\"},\"datePublished\":\"2010-02-26T12:02:00+00:00\",\"dateModified\":\"2017-04-13T19:47:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/sample-corrupt-databases-to-play-with\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/paul\/sample-corrupt-databases-to-play-with\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/sample-corrupt-databases-to-play-with\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sample corrupt databases to play with\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#website\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/\",\"name\":\"Paul S. Randal\",\"description\":\"In Recovery...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce\",\"name\":\"Paul Randal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g\",\"caption\":\"Paul Randal\"},\"sameAs\":[\"http:\/\/3.209.169.194\/blogs\/paul\"],\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/author\/paul\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Sample corrupt databases to play with - Paul S. Randal","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sqlskills.com\/blogs\/paul\/sample-corrupt-databases-to-play-with\/","og_locale":"en_US","og_type":"article","og_title":"Sample corrupt databases to play with - Paul S. Randal","og_description":"The very worst piece of advice I ever saw on the Internet was in response to someone asking on a SQL newsgroup &#8216;how can I create a corrupt database?&#8217;. The first response was: When I want to corrupt a database to play with, I go into the data center, find a hard-drive and flick the [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/paul\/sample-corrupt-databases-to-play-with\/","og_site_name":"Paul S. Randal","article_published_time":"2010-02-26T12:02:00+00:00","article_modified_time":"2017-04-13T19:47:43+00:00","author":"Paul Randal","twitter_misc":{"Written by":"Paul Randal","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/sample-corrupt-databases-to-play-with\/","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/sample-corrupt-databases-to-play-with\/","name":"Sample corrupt databases to play with - Paul S. Randal","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#website"},"datePublished":"2010-02-26T12:02:00+00:00","dateModified":"2017-04-13T19:47:43+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/sample-corrupt-databases-to-play-with\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/paul\/sample-corrupt-databases-to-play-with\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/sample-corrupt-databases-to-play-with\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/paul\/"},{"@type":"ListItem","position":2,"name":"Sample corrupt databases to play with"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/","name":"Paul S. Randal","description":"In Recovery...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/paul\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce","name":"Paul Randal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g","caption":"Paul Randal"},"sameAs":["http:\/\/3.209.169.194\/blogs\/paul"],"url":"https:\/\/www.sqlskills.com\/blogs\/paul\/author\/paul\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts\/744","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/comments?post=744"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts\/744\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/media?parent=744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/categories?post=744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/tags?post=744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}