{"id":767,"date":"2009-12-02T17:04:00","date_gmt":"2009-12-02T17:04:00","guid":{"rendered":"\/blogs\/paul\/post\/2005-corruption-bug-with-XML-index-rebuild-fixed-in-latest-CU.aspx"},"modified":"2017-05-22T13:40:58","modified_gmt":"2017-05-22T20:40:58","slug":"2005-corruption-bug-with-xml-index-rebuild-fixed-in-latest-cu","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/paul\/2005-corruption-bug-with-xml-index-rebuild-fixed-in-latest-cu\/","title":{"rendered":"2005 corruption bug with XML index rebuild fixed in latest CU"},"content":{"rendered":"<p style=\"text-align: justify;\">2005 SP3 CU6 contains a fix for a corruption bug that can happen after rebuilding an XML index that contains XML elements greater than 8000 bytes.<\/p>\n<p style=\"text-align: justify;\">The bug was fixed in 2008 but hadn&#8217;t made it back to 2005 until the last CU was released. I had email from someone back in August experiencing corruption and I thought it looked like a bug &#8211; so I advised them to call PSS, who told them they were the first to report it on 2005 and it was a bug. Cool! (if you see what I mean).<\/p>\n<p style=\"text-align: justify;\">If you run a <em>DBCC CHECKDB<\/em> or a <em>DBCC CHECKTABLE<\/em> after rebuilding an XML index, you&#8217;ll see 8964 errors like the one below:<\/p>\n<pre class=\"brush: plain; gutter: false; title: ; toolbar: true; wrap-lines: true; notranslate\" title=\"\">\r\nDBCC results for 'sys.xml_index_nodes_980198542_32000'.\r\nMsg 8964, Level 16, State 1, Line 2\r\nTable error: Object ID 909246294, index ID 1, partition ID 72057594130530304, alloc unit ID 72057594149535744 (type LOB data). The off-row data node at page (1:621), slot 0, text ID 1302003712 is not referenced.\r\n<\/pre>\n<p style=\"text-align: justify;\">If the XML index contains XML elements that are larger than 8000 bytes, they will be pushed off-row as row overflow columns, stored in LOB pages. The XML index rebuild isn&#8217;t cleaning up its LOB pages properly so leaves orphaned ones lying around. Not really nasty corruption, but enough to set off alarm bells in your monitoring.<\/p>\n<p style=\"text-align: justify;\">You can get the CU at <a href=\"https:\/\/support.microsoft.com\/en-us\/help\/974648\/cumulative-update-package-6-for-sql-server-2005-service-pack-3\">http:\/\/support.microsoft.com\/kb\/974648\/<\/a>, and a high-level description of the bug at <a href=\"https:\/\/support.microsoft.com\/en-us\/help\/974985\">http:\/\/support.microsoft.com\/kb\/974985<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2005 SP3 CU6 contains a fix for a corruption bug that can happen after rebuilding an XML index that contains XML elements greater than 8000 bytes. The bug was fixed in 2008 but hadn&#8217;t made it back to 2005 until the last CU was released. I had email from someone back in August experiencing corruption [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,30,56],"tags":[],"class_list":["post-767","post","type-post","status-publish","format-standard","hentry","category-bugfixes","category-corruption","category-lob-data"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>2005 corruption bug with XML index rebuild fixed in latest CU - 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\/2005-corruption-bug-with-xml-index-rebuild-fixed-in-latest-cu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"2005 corruption bug with XML index rebuild fixed in latest CU - Paul S. Randal\" \/>\n<meta property=\"og:description\" content=\"2005 SP3 CU6 contains a fix for a corruption bug that can happen after rebuilding an XML index that contains XML elements greater than 8000 bytes. The bug was fixed in 2008 but hadn&#8217;t made it back to 2005 until the last CU was released. I had email from someone back in August experiencing corruption [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/paul\/2005-corruption-bug-with-xml-index-rebuild-fixed-in-latest-cu\/\" \/>\n<meta property=\"og:site_name\" content=\"Paul S. Randal\" \/>\n<meta property=\"article:published_time\" content=\"2009-12-02T17:04:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-05-22T20:40:58+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\/2005-corruption-bug-with-xml-index-rebuild-fixed-in-latest-cu\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/2005-corruption-bug-with-xml-index-rebuild-fixed-in-latest-cu\/\",\"name\":\"2005 corruption bug with XML index rebuild fixed in latest CU - Paul S. Randal\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#website\"},\"datePublished\":\"2009-12-02T17:04:00+00:00\",\"dateModified\":\"2017-05-22T20:40:58+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/2005-corruption-bug-with-xml-index-rebuild-fixed-in-latest-cu\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/paul\/2005-corruption-bug-with-xml-index-rebuild-fixed-in-latest-cu\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/2005-corruption-bug-with-xml-index-rebuild-fixed-in-latest-cu\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"2005 corruption bug with XML index rebuild fixed in latest CU\"}]},{\"@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":"2005 corruption bug with XML index rebuild fixed in latest CU - 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\/2005-corruption-bug-with-xml-index-rebuild-fixed-in-latest-cu\/","og_locale":"en_US","og_type":"article","og_title":"2005 corruption bug with XML index rebuild fixed in latest CU - Paul S. Randal","og_description":"2005 SP3 CU6 contains a fix for a corruption bug that can happen after rebuilding an XML index that contains XML elements greater than 8000 bytes. The bug was fixed in 2008 but hadn&#8217;t made it back to 2005 until the last CU was released. I had email from someone back in August experiencing corruption [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/paul\/2005-corruption-bug-with-xml-index-rebuild-fixed-in-latest-cu\/","og_site_name":"Paul S. Randal","article_published_time":"2009-12-02T17:04:00+00:00","article_modified_time":"2017-05-22T20:40:58+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\/2005-corruption-bug-with-xml-index-rebuild-fixed-in-latest-cu\/","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/2005-corruption-bug-with-xml-index-rebuild-fixed-in-latest-cu\/","name":"2005 corruption bug with XML index rebuild fixed in latest CU - Paul S. Randal","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#website"},"datePublished":"2009-12-02T17:04:00+00:00","dateModified":"2017-05-22T20:40:58+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/2005-corruption-bug-with-xml-index-rebuild-fixed-in-latest-cu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/paul\/2005-corruption-bug-with-xml-index-rebuild-fixed-in-latest-cu\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/2005-corruption-bug-with-xml-index-rebuild-fixed-in-latest-cu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/paul\/"},{"@type":"ListItem","position":2,"name":"2005 corruption bug with XML index rebuild fixed in latest CU"}]},{"@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\/767","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=767"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts\/767\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/media?parent=767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/categories?post=767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/tags?post=767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}