{"id":980,"date":"2008-11-24T11:27:00","date_gmt":"2008-11-24T11:27:00","guid":{"rendered":"\/blogs\/paul\/post\/Conference-corruption-demo-scripts-and-example-corrupt-databases.aspx"},"modified":"2017-04-13T11:41:16","modified_gmt":"2017-04-13T18:41:16","slug":"conference-corruption-demo-scripts-and-example-corrupt-databases","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/paul\/conference-corruption-demo-scripts-and-example-corrupt-databases\/","title":{"rendered":"Conference corruption demo scripts and example corrupt databases"},"content":{"rendered":"<p><font face=\"verdana,geneva\" size=\"2\"><\/p>\n<p>\nThis blog post explains the demo scripts and databases I&#39;ve posted to cover all the Corruption Survival Techniques and DBCC CHECKDB sessions I&#39;ve presented at conferences this year. There are two zip files you need to download: the <a href=\"https:\/\/www.sqlskills.com\/resources\/conferences\/2005corruptdatabasesbackups.zip\">example corrupt databases<\/a> (36-MB zip) (and <a href=\"https:\/\/www.sqlskills.com\/resources\/conferences\/2008fatalcorruptionbackups.zip\">this one<\/a> if you&#39;re on 2008) and the <a href=\"https:\/\/www.sqlskills.com\/resources\/conferences\/2008conferences-corruptiondemoscripts.zip\">demo scripts<\/a>. These are also both available&nbsp;through our <a href=\"https:\/\/www.sqlskills.com\/sql-server-resources\/sql-server-demos\/\">past events<\/a> pages.\n<\/p>\n<p>\nThe databases zip contains the following databases:\n<\/p>\n<ul>\n<li>\n<div>\n\t<strong>DemoDataPurity<\/strong>\n\t<\/div>\n<ul>\n<li>\n<div>\n\t\t192-MB SQL Server 2005 database with a single 2570 (data purity) error\n\t\t<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<div>\n\t<strong>DemoFatalCorruption1<\/strong>\n\t<\/div>\n<ul>\n<li>\n<div>\n\t\t1-MB SQL Server 2005 database with a corrupt system table (that allows CHECKDB to complete)\n\t\t<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<div>\n\t<strong>DemoFatalCorruption2<\/strong>\n\t<\/div>\n<ul>\n<li>\n<div>\n\t\t1-MB SQL Server 2005 database with a corrupt system table (that terminates CHECKDB)\n\t\t<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<div>\n\t<strong>DemoNCIndex<\/strong>\n\t<\/div>\n<ul>\n<li>\n<div>\n\t\t192-MB SQL Server 2005 database with a bunch of nonclustered index corruptions\n\t\t<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<div>\n\t<strong>DemoRestoreOrRepair<\/strong>\n\t<\/div>\n<ul>\n<li>\n<div>\n\t\t1-MB SQL Server 2005 database with a page checksum failure (in fact a zero&#39;d out page)\n\t\t<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<div>\n\t<strong>DemoCorruptMetadata<\/strong>\n\t<\/div>\n<ul>\n<li>\n<div>\n\t\t1-MB SQL Server *2000* database with corrupt syscolumns table\n\t\t<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\nThe scripts zip contains the following directories:\n<\/p>\n<ul>\n<li>\n<div>\n\t1 &#8211; Fatal Errors\n\t<\/div>\n<ul>\n<li>\n<div>\n\t\tThis makes use of the DemoFatalCorruption1 and DemoFatalCorruption2 databases. The <strong>FatalErrors.sql <\/strong>script has the steps to follow and see <a href=\"https:\/\/www.sqlskills.com\/blogs\/paul\/teched-demo-corruptions-fatal-to-dbcc-checkdb\/\">this blog post<\/a> for a complete walk-through.\n\t\t<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<div>\n\t2 &#8211; NC Indexes\n\t<\/div>\n<ul>\n<li>\n<div>\n\t\tThis makes use of the DemoNCIndex database. The <strong>NCIndexCorruption.sql<\/strong> script has the steps to follow and see <a href=\"https:\/\/www.sqlskills.com\/blogs\/paul\/teched-demo-nonclustered-index-corruption\/\">this blog post<\/a> for a complete walk-through.\n\t\t<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<div>\n\t3 &#8211; Data Purity\n\t<\/div>\n<ul>\n<li>\n<div>\n\t\tThis makes use of the DemoDataPurity database. The <strong>DataPurityCorruption.sql<\/strong> script has the steps to follow. I&#39;ll blog more details on this script sometime in the next week (and then update this post).\n\t\t<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<div>\n\t4 &#8211; Metadata\n\t<\/div>\n<ul>\n<li>\n<div>\n\t\tThis makes use of the DemoCorruptMetadata database. The <strong>CorruptMetadata.sql<\/strong> script has the steps to follow and see <a href=\"https:\/\/www.sqlskills.com\/blogs\/paul\/using-the-dedicated-admin-connection-to-fix-msg-8992-corrupt-system-tables\/\">this blog post<\/a> for a complete walk-through.\n\t\t<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<div>\n\t5 &#8211; Restore or Repair\n\t<\/div>\n<ul>\n<li>\n<div>\n\t\tThis makes use of the DemoRestoreOrRepair database. There&#39;s a setup script (<strong>01CreateRestoreOrRepair.sql<\/strong>) and two demo scripts &#8211; <strong>FixUsingPageRestore.sql<\/strong> and <strong>FixUsingRepair.sql<\/strong>. I&#39;ll blog more details on these scripts sometime in the next week (and then update this post).\n\t\t<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<div>\n\t6 &#8211; Suspect Database\n\t<\/div>\n<ul>\n<li>\n<div>\n\t\tThis demo doesn&#39;t come with a corrupt database &#8211; you create your own one. The <strong>SuspectDatabase.sql<\/strong> script has the steps to follow and see <a href=\"https:\/\/www.sqlskills.com\/blogs\/paul\/creating-detaching-re-attaching-and-fixing-a-suspect-database\/\">this blog post<\/a> for a complete walk-through.\n\t\t<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\nEnjoy!\n<\/p>\n<p><\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This blog post explains the demo scripts and databases I&#39;ve posted to cover all the Corruption Survival Techniques and DBCC CHECKDB sessions I&#39;ve presented at conferences this year. There are two zip files you need to download: the example corrupt databases (36-MB zip) (and this one if you&#39;re on 2008) and the demo scripts. These [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,22,24,27,30,31,34,35,38,63,74,100],"tags":[],"class_list":["post-980","post","type-post","status-publish","format-standard","hentry","category-backuprestore","category-checkdb-from-every-angle","category-classes","category-conferences","category-corruption","category-database-maintenance","category-dbcc","category-disaster-recovery","category-example-scripts","category-page-checksums","category-repair","category-undocumented-commands"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Conference corruption demo scripts and example corrupt databases - 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\/conference-corruption-demo-scripts-and-example-corrupt-databases\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Conference corruption demo scripts and example corrupt databases - Paul S. Randal\" \/>\n<meta property=\"og:description\" content=\"This blog post explains the demo scripts and databases I&#039;ve posted to cover all the Corruption Survival Techniques and DBCC CHECKDB sessions I&#039;ve presented at conferences this year. There are two zip files you need to download: the example corrupt databases (36-MB zip) (and this one if you&#039;re on 2008) and the demo scripts. These [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/paul\/conference-corruption-demo-scripts-and-example-corrupt-databases\/\" \/>\n<meta property=\"og:site_name\" content=\"Paul S. Randal\" \/>\n<meta property=\"article:published_time\" content=\"2008-11-24T11:27:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-04-13T18:41:16+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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/conference-corruption-demo-scripts-and-example-corrupt-databases\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/conference-corruption-demo-scripts-and-example-corrupt-databases\/\",\"name\":\"Conference corruption demo scripts and example corrupt databases - Paul S. Randal\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#website\"},\"datePublished\":\"2008-11-24T11:27:00+00:00\",\"dateModified\":\"2017-04-13T18:41:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/conference-corruption-demo-scripts-and-example-corrupt-databases\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/paul\/conference-corruption-demo-scripts-and-example-corrupt-databases\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/conference-corruption-demo-scripts-and-example-corrupt-databases\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Conference corruption demo scripts and example corrupt databases\"}]},{\"@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":"Conference corruption demo scripts and example corrupt databases - 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\/conference-corruption-demo-scripts-and-example-corrupt-databases\/","og_locale":"en_US","og_type":"article","og_title":"Conference corruption demo scripts and example corrupt databases - Paul S. Randal","og_description":"This blog post explains the demo scripts and databases I&#39;ve posted to cover all the Corruption Survival Techniques and DBCC CHECKDB sessions I&#39;ve presented at conferences this year. There are two zip files you need to download: the example corrupt databases (36-MB zip) (and this one if you&#39;re on 2008) and the demo scripts. These [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/paul\/conference-corruption-demo-scripts-and-example-corrupt-databases\/","og_site_name":"Paul S. Randal","article_published_time":"2008-11-24T11:27:00+00:00","article_modified_time":"2017-04-13T18:41:16+00:00","author":"Paul Randal","twitter_misc":{"Written by":"Paul Randal","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/conference-corruption-demo-scripts-and-example-corrupt-databases\/","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/conference-corruption-demo-scripts-and-example-corrupt-databases\/","name":"Conference corruption demo scripts and example corrupt databases - Paul S. Randal","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#website"},"datePublished":"2008-11-24T11:27:00+00:00","dateModified":"2017-04-13T18:41:16+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/conference-corruption-demo-scripts-and-example-corrupt-databases\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/paul\/conference-corruption-demo-scripts-and-example-corrupt-databases\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/conference-corruption-demo-scripts-and-example-corrupt-databases\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/paul\/"},{"@type":"ListItem","position":2,"name":"Conference corruption demo scripts and example corrupt databases"}]},{"@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\/980","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=980"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts\/980\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/media?parent=980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/categories?post=980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/tags?post=980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}