{"id":130,"date":"2023-11-30T04:09:42","date_gmt":"2023-11-30T04:09:42","guid":{"rendered":"https:\/\/www.sqltabletalk.com\/?p=130"},"modified":"2023-11-30T04:15:12","modified_gmt":"2023-11-30T04:15:12","slug":"optimizing-sql-server-2022-leveraging-auto-drop-statistics","status":"publish","type":"post","link":"https:\/\/www.sqltabletalk.com\/?p=130","title":{"rendered":"Optimizing SQL Server 2022: Leveraging Auto-Drop Statistics"},"content":{"rendered":"\n<p>Auto-Create statistics is a well-known feature critical for the database performance. When one statistic is auto created, changing the table structure is not blocked by the presence of the statistic. An auto-created statistics is also dropped automatically when a schema change happens.<\/p>\n\n\n\n<p>On the other hand, if the statistic is created by the user, any schema change will be blocked by the presence of the statistic.<\/p>\n\n\n\n<p>The Auto-Drop setting on a statistic is a new&nbsp;<strong>SQL Server 2022<\/strong>&nbsp;feature to change this behavior. If a user created statistic is set with the auto-drop option, it will behave as an auto-created statistics: It will be automatically dropped if a schema change happens.<\/p>\n\n\n\n<p>Using adventureworks lets take a look<\/p>\n\n\n\n<p>Our example will use the table&nbsp;<em>Production.Product<\/em>&nbsp;and focus on the field&nbsp;<em>ListPrice<\/em>.<\/p>\n\n\n\n<p>1) Drop the constraint&nbsp;<em>CK_product_listprice<\/em>, otherwise it will block the demonstration<\/p>\n\n\n\n<p>ALTER\u00a0TABLE\u00a0production.product <br>DROP\u00a0CONSTRAINT\u00a0ck_product_listprice\u00a0<\/p>\n\n\n\n<p>2) Check the existing statistics. You will not find anyone related to ListPrice field.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"544\" height=\"364\" src=\"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-2.png\" alt=\"\" class=\"wp-image-131\" style=\"width:440px;height:auto\" srcset=\"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-2.png 544w, https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-2-300x201.png 300w\" sizes=\"auto, (max-width: 544px) 100vw, 544px\" \/><\/figure>\n\n\n\n<p>3) Execute the following query:<\/p>\n\n\n\n<p>SELECT\u00a0*<br>FROM\u00a0\u00a0\u00a0production.product<br>WHERE\u00a0\u00a0listprice\u00a0=\u00a010\u00a0<\/p>\n\n\n\n<p>3) Check the statistics again. A new statistic was automatically created for the ListPrice field.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"969\" src=\"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-3-1024x969.png\" alt=\"\" class=\"wp-image-132\" style=\"width:489px;height:auto\" srcset=\"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-3-1024x969.png 1024w, https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-3-300x284.png 300w, https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-3-768x727.png 768w, https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-3-850x805.png 850w, https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-3.png 1404w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>4) Alter the column&nbsp;<em>ListPrice<\/em>.<\/p>\n\n\n\n<p>ALTER\u00a0TABLE\u00a0production.product<br>ALTER\u00a0COLUMN\u00a0listprice\u00a0<em>NUMERIC<\/em>(18,\u00a02)\u00a0<\/p>\n\n\n\n<p>5) Check the statistics again. SQL Server will drop the auto-created statistic automatically.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"277\" height=\"164\" src=\"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-4.png\" alt=\"\" class=\"wp-image-133\"\/><\/figure>\n\n\n\n<p>6) Create a new statistics on the field&nbsp;<em>ListPrice<\/em>. It\u2019s a user created statistics.<\/p>\n\n\n\n<p>CREATE&nbsp;STATISTICS&nbsp;[mystats]&nbsp;ON&nbsp;production.product(listprice)&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"265\" height=\"218\" src=\"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-5.png\" alt=\"\" class=\"wp-image-134\"\/><\/figure>\n\n\n\n<p>7) Try to change the schema again. An error will happen.<\/p>\n\n\n\n<p>ALTER\u00a0TABLE\u00a0production.product<br>ALTER\u00a0COLUMN\u00a0listprice\u00a0<em>MONEY<\/em>\u00a0<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"299\" src=\"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-6-1024x299.png\" alt=\"\" class=\"wp-image-135\" srcset=\"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-6-1024x299.png 1024w, https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-6-300x87.png 300w, https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-6-768x224.png 768w, https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-6-850x248.png 850w, https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-6.png 1403w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>8) Drop the user created statistic<\/p>\n\n\n\n<p>DROP&nbsp;statistic&nbsp;production.product.mystats&nbsp;<\/p>\n\n\n\n<p>9) Create the statistics again, this time using the auto-drop option.<\/p>\n\n\n\n<p>CREATE&nbsp;statistics&nbsp;[mystats]&nbsp;ON&nbsp;production.product(listprice)&nbsp;WITH&nbsp;auto_drop=ON&nbsp;<\/p>\n\n\n\n<p>10) Try to change the schema again. This time it will work and the statistics mystats will be dropped<\/p>\n\n\n\n<p>ALTER\u00a0TABLE\u00a0production.product<br>ALTER\u00a0COLUMN\u00a0listprice\u00a0<em>MONEY<\/em>\u00a0<\/p>\n\n\n\n<p><strong>You can check which stats have auto drop<\/strong><\/p>\n\n\n\n<p>A simple query can help identify which statistics have the auto-drop option and which ones doesn\u2019t:<\/p>\n\n\n\n<p>SELECT\u00a0object_id, NAME, auto_drop<br>FROM\u00a0\u00a0\u00a0sys.stats\u00a0<\/p>\n\n\n\n<p>&#8212;check the auto_drop property<\/p>\n\n\n\n<p>select * from sys.stats where object_id=object_id(&#8216;table1&#8217;)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"72\" src=\"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-7-1024x72.png\" alt=\"\" class=\"wp-image-136\" srcset=\"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-7-1024x72.png 1024w, https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-7-300x21.png 300w, https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-7-768x54.png 768w, https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-7-850x60.png 850w, https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-7.png 1405w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"73\" src=\"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-8-1024x73.png\" alt=\"\" class=\"wp-image-137\" srcset=\"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-8-1024x73.png 1024w, https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-8-300x21.png 300w, https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-8-768x55.png 768w, https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-8-850x60.png 850w, https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-8.png 1405w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><br>In conclusion, the introduction of the Auto-Drop feature for user-created statistics in SQL Server 2022 marks a significant improvement in database management and flexibility. This feature harmonizes the behavior of both auto-created and user-created statistics, offering a more streamlined and efficient approach to handling schema changes.<\/p>\n\n\n\n<p>Through the example using the AdventureWorks database and the <code>Production.Product<\/code> table, we clearly see the practical implications of this feature. The ability to automatically drop user-created statistics when schema changes occur \u2013 akin to the behavior of auto-created statistics \u2013 simplifies database maintenance and reduces the potential for errors. This is especially useful in dynamic environments where schema modifications are frequent.<\/p>\n\n\n\n<p>Furthermore, the option to easily identify which statistics have the auto-drop setting enabled, using a simple query on the <code>sys.stats<\/code> system view, adds to the usability of this feature. Database administrators now have greater control and can make more informed decisions about their statistics management strategies.<\/p>\n\n\n\n<p>Overall, SQL Server 2022&#8217;s Auto-Drop feature for statistics is a thoughtful enhancement that addresses a longstanding limitation, thereby improving the database&#8217;s adaptability and performance. It&#8217;s a clear reflection of SQL Server&#8217;s commitment to evolving in line with the needs of modern database environments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Auto-Create statistics is a well-known feature critical for the database performance. When one statistic is auto created, changing the table structure is not blocked by the presence of the statistic. An auto-created statistics is also dropped automatically when a schema change happens. On the other hand, if the statistic is created by the user, any schema change will be blocked by the presence of the statistic. The Auto-Drop setting on a statistic is a new\u00a0SQL Server 2022\u00a0feature to change this behavior.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5,40,44,21],"tags":[46,45],"class_list":["post-130","post","type-post","status-publish","format-standard","hentry","category-performance","category-sql-server-2022","category-statistics","category-tutorial","tag-auto-drop","tag-statistics"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Optimizing SQL Server 2022: Leveraging Auto-Drop Statistics - SQL Table Talk<\/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.sqltabletalk.com\/?p=130\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Optimizing SQL Server 2022: Leveraging Auto-Drop Statistics - SQL Table Talk\" \/>\n<meta property=\"og:description\" content=\"Auto-Create statistics is a well-known feature critical for the database performance. When one statistic is auto created, changing the table structure is not blocked by the presence of the statistic. An auto-created statistics is also dropped automatically when a schema change happens. On the other hand, if the statistic is created by the user, any schema change will be blocked by the presence of the statistic. The Auto-Drop setting on a statistic is a new\u00a0SQL Server 2022\u00a0feature to change this behavior.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqltabletalk.com\/?p=130\" \/>\n<meta property=\"og:site_name\" content=\"SQL Table Talk\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-30T04:09:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-30T04:15:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-2.png\" \/>\n<meta name=\"author\" content=\"Yvonne Vanslageren\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yvonne Vanslageren\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.sqltabletalk.com\/?p=130#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqltabletalk.com\/?p=130\"},\"author\":{\"name\":\"Yvonne Vanslageren\",\"@id\":\"https:\/\/www.sqltabletalk.com\/#\/schema\/person\/68bb31b454bafe9e139183ed4f3e9082\"},\"headline\":\"Optimizing SQL Server 2022: Leveraging Auto-Drop Statistics\",\"datePublished\":\"2023-11-30T04:09:42+00:00\",\"dateModified\":\"2023-11-30T04:15:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.sqltabletalk.com\/?p=130\"},\"wordCount\":573,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.sqltabletalk.com\/#\/schema\/person\/1947e42a9438bccd91691d8b791888e0\"},\"image\":{\"@id\":\"https:\/\/www.sqltabletalk.com\/?p=130#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-2.png\",\"keywords\":[\"auto drop\",\"statistics\"],\"articleSection\":[\"Performance\",\"SQL Server 2022\",\"Statistics\",\"Tutorial\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.sqltabletalk.com\/?p=130#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqltabletalk.com\/?p=130\",\"url\":\"https:\/\/www.sqltabletalk.com\/?p=130\",\"name\":\"Optimizing SQL Server 2022: Leveraging Auto-Drop Statistics - SQL Table Talk\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqltabletalk.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.sqltabletalk.com\/?p=130#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.sqltabletalk.com\/?p=130#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-2.png\",\"datePublished\":\"2023-11-30T04:09:42+00:00\",\"dateModified\":\"2023-11-30T04:15:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.sqltabletalk.com\/?p=130#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqltabletalk.com\/?p=130\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqltabletalk.com\/?p=130#primaryimage\",\"url\":\"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-2.png\",\"contentUrl\":\"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-2.png\",\"width\":544,\"height\":364},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqltabletalk.com\/?p=130#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqltabletalk.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Optimizing SQL Server 2022: Leveraging Auto-Drop Statistics\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqltabletalk.com\/#website\",\"url\":\"https:\/\/www.sqltabletalk.com\/\",\"name\":\"SQL Table Talk\",\"description\":\"Breaking Down SQL Server, One Post at a Time.\",\"publisher\":{\"@id\":\"https:\/\/www.sqltabletalk.com\/#\/schema\/person\/1947e42a9438bccd91691d8b791888e0\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqltabletalk.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.sqltabletalk.com\/#\/schema\/person\/1947e42a9438bccd91691d8b791888e0\",\"name\":\"Stephen Planck\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqltabletalk.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/64181114edc3de3d99072c049bcec024f025c9536dc89fc8ff1bac58976ca81e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/64181114edc3de3d99072c049bcec024f025c9536dc89fc8ff1bac58976ca81e?s=96&d=mm&r=g\",\"caption\":\"Stephen Planck\"},\"logo\":{\"@id\":\"https:\/\/www.sqltabletalk.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/dexterwiki.com\",\"https:\/\/www.linkedin.com\/in\/stephen-planck-4611b692?trk=people-guest_people_search-card&challengeId=AQErf8gbBmcVMwAAAYsyIsxO-0UvU8z7cHrBpZoo_n3xt9qEKpRN5B_jd_LmAMu-OfeArkQ7GDjobJ2uRoQQV35EQdh_rR6kxA&submissionId=09de7067-c335-8e17-40b8-8dc32b60ed6c&challengeSource=AgEcUCw35zpPmAAAAYsyI4vAWhJTV7Nt4vZYKc3V1qiDBpCkKgUvtlOBgYXcE84&challegeType=AgE_wZiTT09IAQAAAYsyI4vDmNvbZIYe6XHju5V2bXVvM3IVxnJslgY&memberId=AgESFTkUShzs_gAAAYsyI4vGYk0Gic1uc5kB6cKOABA26Gw&recognizeDevice=AgHdSZyUSI5CEwAAAYsyI4vKd_koF9JgpsCJShT8QfbK1QMiv8SI\",\"https:\/\/www.youtube.com\/linuxmate\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqltabletalk.com\/#\/schema\/person\/68bb31b454bafe9e139183ed4f3e9082\",\"name\":\"Yvonne Vanslageren\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqltabletalk.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/22c274a7a354b81a0a8dc5b23e8e0be9bdd81a6bc0541474cfb6b954d6bb2089?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/22c274a7a354b81a0a8dc5b23e8e0be9bdd81a6bc0541474cfb6b954d6bb2089?s=96&d=mm&r=g\",\"caption\":\"Yvonne Vanslageren\"},\"url\":\"https:\/\/www.sqltabletalk.com\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Optimizing SQL Server 2022: Leveraging Auto-Drop Statistics - SQL Table Talk","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.sqltabletalk.com\/?p=130","og_locale":"en_US","og_type":"article","og_title":"Optimizing SQL Server 2022: Leveraging Auto-Drop Statistics - SQL Table Talk","og_description":"Auto-Create statistics is a well-known feature critical for the database performance. When one statistic is auto created, changing the table structure is not blocked by the presence of the statistic. An auto-created statistics is also dropped automatically when a schema change happens. On the other hand, if the statistic is created by the user, any schema change will be blocked by the presence of the statistic. The Auto-Drop setting on a statistic is a new\u00a0SQL Server 2022\u00a0feature to change this behavior.","og_url":"https:\/\/www.sqltabletalk.com\/?p=130","og_site_name":"SQL Table Talk","article_published_time":"2023-11-30T04:09:42+00:00","article_modified_time":"2023-11-30T04:15:12+00:00","og_image":[{"url":"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-2.png","type":"","width":"","height":""}],"author":"Yvonne Vanslageren","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Yvonne Vanslageren","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sqltabletalk.com\/?p=130#article","isPartOf":{"@id":"https:\/\/www.sqltabletalk.com\/?p=130"},"author":{"name":"Yvonne Vanslageren","@id":"https:\/\/www.sqltabletalk.com\/#\/schema\/person\/68bb31b454bafe9e139183ed4f3e9082"},"headline":"Optimizing SQL Server 2022: Leveraging Auto-Drop Statistics","datePublished":"2023-11-30T04:09:42+00:00","dateModified":"2023-11-30T04:15:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sqltabletalk.com\/?p=130"},"wordCount":573,"commentCount":0,"publisher":{"@id":"https:\/\/www.sqltabletalk.com\/#\/schema\/person\/1947e42a9438bccd91691d8b791888e0"},"image":{"@id":"https:\/\/www.sqltabletalk.com\/?p=130#primaryimage"},"thumbnailUrl":"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-2.png","keywords":["auto drop","statistics"],"articleSection":["Performance","SQL Server 2022","Statistics","Tutorial"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.sqltabletalk.com\/?p=130#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.sqltabletalk.com\/?p=130","url":"https:\/\/www.sqltabletalk.com\/?p=130","name":"Optimizing SQL Server 2022: Leveraging Auto-Drop Statistics - SQL Table Talk","isPartOf":{"@id":"https:\/\/www.sqltabletalk.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sqltabletalk.com\/?p=130#primaryimage"},"image":{"@id":"https:\/\/www.sqltabletalk.com\/?p=130#primaryimage"},"thumbnailUrl":"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-2.png","datePublished":"2023-11-30T04:09:42+00:00","dateModified":"2023-11-30T04:15:12+00:00","breadcrumb":{"@id":"https:\/\/www.sqltabletalk.com\/?p=130#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqltabletalk.com\/?p=130"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqltabletalk.com\/?p=130#primaryimage","url":"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-2.png","contentUrl":"https:\/\/www.sqltabletalk.com\/wp-content\/uploads\/2023\/11\/image-2.png","width":544,"height":364},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqltabletalk.com\/?p=130#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqltabletalk.com\/"},{"@type":"ListItem","position":2,"name":"Optimizing SQL Server 2022: Leveraging Auto-Drop Statistics"}]},{"@type":"WebSite","@id":"https:\/\/www.sqltabletalk.com\/#website","url":"https:\/\/www.sqltabletalk.com\/","name":"SQL Table Talk","description":"Breaking Down SQL Server, One Post at a Time.","publisher":{"@id":"https:\/\/www.sqltabletalk.com\/#\/schema\/person\/1947e42a9438bccd91691d8b791888e0"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqltabletalk.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.sqltabletalk.com\/#\/schema\/person\/1947e42a9438bccd91691d8b791888e0","name":"Stephen Planck","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqltabletalk.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/64181114edc3de3d99072c049bcec024f025c9536dc89fc8ff1bac58976ca81e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/64181114edc3de3d99072c049bcec024f025c9536dc89fc8ff1bac58976ca81e?s=96&d=mm&r=g","caption":"Stephen Planck"},"logo":{"@id":"https:\/\/www.sqltabletalk.com\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/dexterwiki.com","https:\/\/www.linkedin.com\/in\/stephen-planck-4611b692?trk=people-guest_people_search-card&challengeId=AQErf8gbBmcVMwAAAYsyIsxO-0UvU8z7cHrBpZoo_n3xt9qEKpRN5B_jd_LmAMu-OfeArkQ7GDjobJ2uRoQQV35EQdh_rR6kxA&submissionId=09de7067-c335-8e17-40b8-8dc32b60ed6c&challengeSource=AgEcUCw35zpPmAAAAYsyI4vAWhJTV7Nt4vZYKc3V1qiDBpCkKgUvtlOBgYXcE84&challegeType=AgE_wZiTT09IAQAAAYsyI4vDmNvbZIYe6XHju5V2bXVvM3IVxnJslgY&memberId=AgESFTkUShzs_gAAAYsyI4vGYk0Gic1uc5kB6cKOABA26Gw&recognizeDevice=AgHdSZyUSI5CEwAAAYsyI4vKd_koF9JgpsCJShT8QfbK1QMiv8SI","https:\/\/www.youtube.com\/linuxmate"]},{"@type":"Person","@id":"https:\/\/www.sqltabletalk.com\/#\/schema\/person\/68bb31b454bafe9e139183ed4f3e9082","name":"Yvonne Vanslageren","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqltabletalk.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/22c274a7a354b81a0a8dc5b23e8e0be9bdd81a6bc0541474cfb6b954d6bb2089?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/22c274a7a354b81a0a8dc5b23e8e0be9bdd81a6bc0541474cfb6b954d6bb2089?s=96&d=mm&r=g","caption":"Yvonne Vanslageren"},"url":"https:\/\/www.sqltabletalk.com\/?author=2"}]}},"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sqltabletalk.com\/index.php?rest_route=\/wp\/v2\/posts\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqltabletalk.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqltabletalk.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqltabletalk.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqltabletalk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=130"}],"version-history":[{"count":3,"href":"https:\/\/www.sqltabletalk.com\/index.php?rest_route=\/wp\/v2\/posts\/130\/revisions"}],"predecessor-version":[{"id":163,"href":"https:\/\/www.sqltabletalk.com\/index.php?rest_route=\/wp\/v2\/posts\/130\/revisions\/163"}],"wp:attachment":[{"href":"https:\/\/www.sqltabletalk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqltabletalk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqltabletalk.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}