{"id":525,"date":"2011-09-27T21:31:00","date_gmt":"2011-09-27T21:31:00","guid":{"rendered":"\/blogs\/bobb\/post\/More-Warnings-in-SQL-Server-Denali-Query-Plans.aspx"},"modified":"2011-09-27T21:31:00","modified_gmt":"2011-09-27T21:31:00","slug":"additional-warnings-in-sql-server-denali-query-plans","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/bobb\/additional-warnings-in-sql-server-denali-query-plans\/","title":{"rendered":"Additional Warnings in SQL Server Denali Query Plans"},"content":{"rendered":"<p>\nSort and hash warnings can be found using SQL Server profiler, but they don&#39;t appear in query plans like &quot;Columns With No Statstics&quot; warnings in SQL Server 2008 R2 and below. In SQL Server Denali, they DO appear in query plans. No profiler needed. I&#39;m not sure if all the pertainant events from the trace events &quot;Errors and Warnings&quot; (in Denali, I&#39;d actually look at Extended Events Category Errors and Category Warnings), but I have seen some of them.\n<\/p>\n<p>\nSORT iterator warning<br \/>\n&nbsp;Operator used tempdb to spill data during execution with spill level 1\n<\/p>\n<p>\nHASH MATCH (Aggregate) warning<br \/>\n&nbsp;Operator used tempdb to spill data during execution with spill level 1\n<\/p>\n<p>\nThe ever-popular Index Seek Iterator warning<br \/>\n&nbsp;Columns With No Statistics: [database].[schema].[table].Column\n<\/p>\n<p>\nJOIN Iterator (appears pre-Denali too)<br \/>\n&nbsp;No join predicate\n<\/p>\n<p>\nAnd I&#39;ve also seen some warnings in Denali query plans that don&#39;t appear in Extended Events Errors\/Warnings. These appear on the SELECT Iterator:\n<\/p>\n<p>\nType conversion in expression (CONVERT_IMPLICIT(nchar(13),[database].[schema].[table].Column,0)) may affect &quot;CardinalityEstimate&quot; in query plan choice, <br \/>\nType conversion in expression (CONVERT_IMPLICIT(nchar(13),[database].[schema].[table].Column,0)=[@1]) may affect &quot;SeekPlan&quot; in query plan choice\n<\/p>\n<p>\nAnd indeed it did affect the plan. Drastically.\n<\/p>\n<p>\nAlso in the SELECT iterator:<br \/>\n&nbsp;SpatialGuess &#8211; True\n<\/p>\n<p>\nI&#39;ve been troubleshooting a spatial query plan, and this one has me baffled, so far. I assumed that it meant that the QP couldn&#39;t sniff the value of a spatial parameter, but I pass it in trying sproc parameter and using sp_executesql and still the warning persists. Hmmm&#8230;\n<\/p>\n<p>\nI&#39;m not sure you can get &#39;em all, so if you happen to see some that I haven&#39;t yet seen (especially if it DOESN&#39;T appear as a trace\/extended event error\/warning), just drop me a line.\n<\/p>\n<p>\n@bobbeauch<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sort and hash warnings can be found using SQL Server profiler, but they don&#39;t appear in query plans like &quot;Columns With No Statstics&quot; warnings in SQL Server 2008 R2 and below. In SQL Server Denali, they DO appear in query plans. No profiler needed. I&#39;m not sure if all the pertainant events from the trace [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,31],"tags":[],"class_list":["post-525","post","type-post","status-publish","format-standard","hentry","category-performance","category-sql-server-2012"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.9.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Additional Warnings in SQL Server Denali Query Plans - Bob Beauchemin<\/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\/bobb\/additional-warnings-in-sql-server-denali-query-plans\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Additional Warnings in SQL Server Denali Query Plans - Bob Beauchemin\" \/>\n<meta property=\"og:description\" content=\"Sort and hash warnings can be found using SQL Server profiler, but they don&#039;t appear in query plans like &quot;Columns With No Statstics&quot; warnings in SQL Server 2008 R2 and below. In SQL Server Denali, they DO appear in query plans. No profiler needed. I&#039;m not sure if all the pertainant events from the trace [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/bobb\/additional-warnings-in-sql-server-denali-query-plans\/\" \/>\n<meta property=\"og:site_name\" content=\"Bob Beauchemin\" \/>\n<meta property=\"article:published_time\" content=\"2011-09-27T21:31:00+00:00\" \/>\n<meta name=\"author\" content=\"Bob Beauchemin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bob Beauchemin\" \/>\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\/bobb\/additional-warnings-in-sql-server-denali-query-plans\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/additional-warnings-in-sql-server-denali-query-plans\/\",\"name\":\"Additional Warnings in SQL Server Denali Query Plans - Bob Beauchemin\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website\"},\"datePublished\":\"2011-09-27T21:31:00+00:00\",\"dateModified\":\"2011-09-27T21:31:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/additional-warnings-in-sql-server-denali-query-plans\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/bobb\/additional-warnings-in-sql-server-denali-query-plans\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/additional-warnings-in-sql-server-denali-query-plans\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Performance\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/category\/performance\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Additional Warnings in SQL Server Denali Query Plans\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/\",\"name\":\"Bob Beauchemin\",\"description\":\"SQL Server Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e\",\"name\":\"Bob Beauchemin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g\",\"caption\":\"Bob Beauchemin\"},\"sameAs\":[\"http:\/www.sqlskills.com\/blogs\/bobb\/\"],\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/author\/bobb\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Additional Warnings in SQL Server Denali Query Plans - Bob Beauchemin","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\/bobb\/additional-warnings-in-sql-server-denali-query-plans\/","og_locale":"en_US","og_type":"article","og_title":"Additional Warnings in SQL Server Denali Query Plans - Bob Beauchemin","og_description":"Sort and hash warnings can be found using SQL Server profiler, but they don&#39;t appear in query plans like &quot;Columns With No Statstics&quot; warnings in SQL Server 2008 R2 and below. In SQL Server Denali, they DO appear in query plans. No profiler needed. I&#39;m not sure if all the pertainant events from the trace [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/additional-warnings-in-sql-server-denali-query-plans\/","og_site_name":"Bob Beauchemin","article_published_time":"2011-09-27T21:31:00+00:00","author":"Bob Beauchemin","twitter_misc":{"Written by":"Bob Beauchemin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/additional-warnings-in-sql-server-denali-query-plans\/","url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/additional-warnings-in-sql-server-denali-query-plans\/","name":"Additional Warnings in SQL Server Denali Query Plans - Bob Beauchemin","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website"},"datePublished":"2011-09-27T21:31:00+00:00","dateModified":"2011-09-27T21:31:00+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/additional-warnings-in-sql-server-denali-query-plans\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/bobb\/additional-warnings-in-sql-server-denali-query-plans\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/additional-warnings-in-sql-server-denali-query-plans\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/bobb\/"},{"@type":"ListItem","position":2,"name":"Performance","item":"https:\/\/www.sqlskills.com\/blogs\/bobb\/category\/performance\/"},{"@type":"ListItem","position":3,"name":"Additional Warnings in SQL Server Denali Query Plans"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/","name":"Bob Beauchemin","description":"SQL Server Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/bobb\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e","name":"Bob Beauchemin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g","caption":"Bob Beauchemin"},"sameAs":["http:\/www.sqlskills.com\/blogs\/bobb\/"],"url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/author\/bobb\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts\/525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/comments?post=525"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts\/525\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/media?parent=525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/categories?post=525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/tags?post=525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}