Warning: Constant WP_TEMP_DIR already defined in /var/www/html/blogs/joe/wp-config.php on line 93

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/blogs/joe/wp-config.php:93) in /var/www/html/blogs/joe/wp-includes/rest-api/class-wp-rest-server.php on line 1902

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/blogs/joe/wp-config.php:93) in /var/www/html/blogs/joe/wp-includes/rest-api/class-wp-rest-server.php on line 1902

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/blogs/joe/wp-config.php:93) in /var/www/html/blogs/joe/wp-includes/rest-api/class-wp-rest-server.php on line 1902

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/blogs/joe/wp-config.php:93) in /var/www/html/blogs/joe/wp-includes/rest-api/class-wp-rest-server.php on line 1902

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/blogs/joe/wp-config.php:93) in /var/www/html/blogs/joe/wp-includes/rest-api/class-wp-rest-server.php on line 1902

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/blogs/joe/wp-config.php:93) in /var/www/html/blogs/joe/wp-includes/rest-api/class-wp-rest-server.php on line 1902

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/blogs/joe/wp-config.php:93) in /var/www/html/blogs/joe/wp-includes/rest-api/class-wp-rest-server.php on line 1902

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/blogs/joe/wp-config.php:93) in /var/www/html/blogs/joe/wp-includes/rest-api/class-wp-rest-server.php on line 1902
{"id":517,"date":"2011-11-21T11:59:00","date_gmt":"2011-11-21T11:59:00","guid":{"rendered":"\/blogs\/joe\/post\/One-resolution-to-e2809csyssql_dependencies-does-not-have-a-matching-rowe2809d.aspx"},"modified":"2013-02-02T08:58:07","modified_gmt":"2013-02-02T16:58:07","slug":"one-resolution-to-sys-sql_dependencies-does-not-have-a-matching-row","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/joe\/one-resolution-to-sys-sql_dependencies-does-not-have-a-matching-row\/","title":{"rendered":"One resolution to \u201csys.sql_dependencies does not have a matching row\u201d"},"content":{"rendered":"

This particular issue I\u2019m about to describe should be pretty rare, but I\u2019m posting this here in the event that someone else encounters it and then finds this post and then hopefully applies the \u201cminimum required dose\u201d required to fix the problem instead of using more sweeping methods such as restoring from database backup…<\/span>\u00a0 <\/span><\/span><\/span><\/p>\n

I had a case today where the following message (with different ids) was appearing in DBCC CHECKDB output across several SQL Server 2005 databases that had original been hosted on SQL Server 2000 instances:<\/span><\/span><\/p>\n

Check Catalog Msg 3853, State 1: Attribute (referenced_major_id=117575457<\/span><\/span>,referenced_minor_id=1) of row (class=0,object_id=1589580701<\/span><\/span>,column_id=0,referenced_major_id=117575457<\/span><\/span>,referenced_minor_id=1) in sys.sql_dependencies does not have a matching row (object_id=117575457<\/span><\/span>,column_id=1) in sys.columns.<\/span><\/span><\/p>\n

Given that sys.sql_dependencies is on the deprecation path (in favor of sys.sql_expression_dependencies) \u2013 one might decide to ignore the errors, but living with this kind of noise in DBCC CHECKDB might cause you to then not<\/em> pay attention in the event that more critical corruption errors occur.<\/span><\/span><\/p>\n

While there are a few invasive solutions for clearing out a metadata mismatch between sys.sql_dependencies and sys.columns, if you\u2019re encountering this issue between sys.sql_dependencies and sys.columns, first try EXEC sys.sp_refreshsqlmodule for the applicable object (for example \u2013 stored procedure) instead.\u00a0 <\/span>This system stored procedure will then update the metadata associated with the module and, as in today\u2019s case, clean up the mismatches and corruption warnings in DBCC CHECKDB.<\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

This particular issue I\u2019m about to describe should be pretty rare, but I\u2019m posting this here in the event that someone else encounters it and then finds this post and then hopefully applies the \u201cminimum required dose\u201d required to fix the problem instead of using more sweeping methods such as restoring from database backup…\u00a0 I […]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-517","post","type-post","status-publish","format-standard","hentry","category-corruption"],"yoast_head":"\nOne resolution to \u201csys.sql_dependencies does not have a matching row\u201d - Joe Sack<\/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\/joe\/one-resolution-to-sys-sql_dependencies-does-not-have-a-matching-row\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"One resolution to \u201csys.sql_dependencies does not have a matching row\u201d - Joe Sack\" \/>\n<meta property=\"og:description\" content=\"This particular issue I\u2019m about to describe should be pretty rare, but I\u2019m posting this here in the event that someone else encounters it and then finds this post and then hopefully applies the \u201cminimum required dose\u201d required to fix the problem instead of using more sweeping methods such as restoring from database backup…\u00a0 I […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/joe\/one-resolution-to-sys-sql_dependencies-does-not-have-a-matching-row\/\" \/>\n<meta property=\"og:site_name\" content=\"Joe Sack\" \/>\n<meta property=\"article:published_time\" content=\"2011-11-21T11:59:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-02-02T16:58:07+00:00\" \/>\n<meta name=\"author\" content=\"Joseph Sack\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Joseph Sack\" \/>\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\/joe\/one-resolution-to-sys-sql_dependencies-does-not-have-a-matching-row\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/joe\/one-resolution-to-sys-sql_dependencies-does-not-have-a-matching-row\/\",\"name\":\"One resolution to \u201csys.sql_dependencies does not have a matching row\u201d - Joe Sack\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/joe\/#website\"},\"datePublished\":\"2011-11-21T11:59:00+00:00\",\"dateModified\":\"2013-02-02T16:58:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/joe\/#\/schema\/person\/533eb0113a15fb5a6e8067a49e4ae648\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/joe\/one-resolution-to-sys-sql_dependencies-does-not-have-a-matching-row\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/joe\/one-resolution-to-sys-sql_dependencies-does-not-have-a-matching-row\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/joe\/one-resolution-to-sys-sql_dependencies-does-not-have-a-matching-row\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/joe\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Corruption\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/joe\/category\/corruption\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"One resolution to \u201csys.sql_dependencies does not have a matching row\u201d\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/joe\/#website\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/joe\/\",\"name\":\"Joe Sack\",\"description\":\"SQL Server Performance Tuning, High Availability and Disaster Recovery Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlskills.com\/blogs\/joe\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/joe\/#\/schema\/person\/533eb0113a15fb5a6e8067a49e4ae648\",\"name\":\"Joseph Sack\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/joe\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a4b39a7719a6bfff1add3ec00527810734579ee114d6d983e8e68f937b77be96?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a4b39a7719a6bfff1add3ec00527810734579ee114d6d983e8e68f937b77be96?s=96&d=mm&r=g\",\"caption\":\"Joseph Sack\"},\"description\":\"Joe Sack is a Principal Consultant with SQLskills. He has worked as a SQL Server professional since 1997 and has supported and developed for SQL Server environments in financial services, IT consulting, manufacturing, retail and the real estate industry. Prior to joining SQLskills he worked at Microsoft as a Premier Field Engineer supporting very large enterprise customer environments. He was responsible for providing deep SQL Server advisory services, training, troubleshooting and ongoing solutions guidance. His areas of expertise include performance tuning, scalability, T-SQL development and high-availability. In 2006 Joe earned the \u201cMicrosoft Certified Master: SQL Server 2005\u201d certification and in 2008 he earned the \u201cMicrosoft Certified Master: SQL Server 2008\u201d certification. In 2009 he took over responsibility for the entire SQL Server Microsoft Certified Master program and held that post until 2011. He was given the SQL Server MVP award in 2013.\",\"sameAs\":[\"http:\/\/3.209.169.194\/blogs\/joe\",\"https:\/\/twitter.com\/https:\/\/twitter.com\/josephsack\"],\"url\":\"https:\/\/www.sqlskills.com\/blogs\/joe\/author\/joe\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"One resolution to \u201csys.sql_dependencies does not have a matching row\u201d - Joe Sack","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\/joe\/one-resolution-to-sys-sql_dependencies-does-not-have-a-matching-row\/","og_locale":"en_US","og_type":"article","og_title":"One resolution to \u201csys.sql_dependencies does not have a matching row\u201d - Joe Sack","og_description":"This particular issue I\u2019m about to describe should be pretty rare, but I\u2019m posting this here in the event that someone else encounters it and then finds this post and then hopefully applies the \u201cminimum required dose\u201d required to fix the problem instead of using more sweeping methods such as restoring from database backup…\u00a0 I […]","og_url":"https:\/\/www.sqlskills.com\/blogs\/joe\/one-resolution-to-sys-sql_dependencies-does-not-have-a-matching-row\/","og_site_name":"Joe Sack","article_published_time":"2011-11-21T11:59:00+00:00","article_modified_time":"2013-02-02T16:58:07+00:00","author":"Joseph Sack","twitter_misc":{"Written by":"Joseph Sack","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/joe\/one-resolution-to-sys-sql_dependencies-does-not-have-a-matching-row\/","url":"https:\/\/www.sqlskills.com\/blogs\/joe\/one-resolution-to-sys-sql_dependencies-does-not-have-a-matching-row\/","name":"One resolution to \u201csys.sql_dependencies does not have a matching row\u201d - Joe Sack","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/joe\/#website"},"datePublished":"2011-11-21T11:59:00+00:00","dateModified":"2013-02-02T16:58:07+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/joe\/#\/schema\/person\/533eb0113a15fb5a6e8067a49e4ae648"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/joe\/one-resolution-to-sys-sql_dependencies-does-not-have-a-matching-row\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/joe\/one-resolution-to-sys-sql_dependencies-does-not-have-a-matching-row\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/joe\/one-resolution-to-sys-sql_dependencies-does-not-have-a-matching-row\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/joe\/"},{"@type":"ListItem","position":2,"name":"Corruption","item":"https:\/\/www.sqlskills.com\/blogs\/joe\/category\/corruption\/"},{"@type":"ListItem","position":3,"name":"One resolution to \u201csys.sql_dependencies does not have a matching row\u201d"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/joe\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/joe\/","name":"Joe Sack","description":"SQL Server Performance Tuning, High Availability and Disaster Recovery Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/joe\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/joe\/#\/schema\/person\/533eb0113a15fb5a6e8067a49e4ae648","name":"Joseph Sack","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/joe\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a4b39a7719a6bfff1add3ec00527810734579ee114d6d983e8e68f937b77be96?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a4b39a7719a6bfff1add3ec00527810734579ee114d6d983e8e68f937b77be96?s=96&d=mm&r=g","caption":"Joseph Sack"},"description":"Joe Sack is a Principal Consultant with SQLskills. He has worked as a SQL Server professional since 1997 and has supported and developed for SQL Server environments in financial services, IT consulting, manufacturing, retail and the real estate industry. Prior to joining SQLskills he worked at Microsoft as a Premier Field Engineer supporting very large enterprise customer environments. He was responsible for providing deep SQL Server advisory services, training, troubleshooting and ongoing solutions guidance. His areas of expertise include performance tuning, scalability, T-SQL development and high-availability. In 2006 Joe earned the \u201cMicrosoft Certified Master: SQL Server 2005\u201d certification and in 2008 he earned the \u201cMicrosoft Certified Master: SQL Server 2008\u201d certification. In 2009 he took over responsibility for the entire SQL Server Microsoft Certified Master program and held that post until 2011. He was given the SQL Server MVP award in 2013.","sameAs":["http:\/\/3.209.169.194\/blogs\/joe","https:\/\/twitter.com\/https:\/\/twitter.com\/josephsack"],"url":"https:\/\/www.sqlskills.com\/blogs\/joe\/author\/joe\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/joe\/wp-json\/wp\/v2\/posts\/517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/joe\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/joe\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/joe\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/joe\/wp-json\/wp\/v2\/comments?post=517"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/joe\/wp-json\/wp\/v2\/posts\/517\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/joe\/wp-json\/wp\/v2\/media?parent=517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/joe\/wp-json\/wp\/v2\/categories?post=517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/joe\/wp-json\/wp\/v2\/tags?post=517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}