{"id":452,"date":"2010-01-28T18:09:28","date_gmt":"2010-01-28T17:09:28","guid":{"rendered":"http:\/\/blog.capdata.fr\/?p=452"},"modified":"2022-12-01T17:57:24","modified_gmt":"2022-12-01T16:57:24","slug":"sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique","status":"publish","type":"post","link":"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/","title":{"rendered":"Retrouver les tables dont les stats ne sont plus compil\u00e9es en automatique"},"content":{"rendered":"<a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fblog.capdata.fr%2Findex.php%2Fwp-json%2Fwp%2Fv2%2Fposts%2F452&#038;text=Article%20sur%20le%20blog%20de%20la%20Capdata%20Tech%20Team%20%3A%20\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/blog.capdata.fr\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Fblog.capdata.fr%2Findex.php%2Fwp-json%2Fwp%2Fv2%2Fposts%2F452&#038;title=Retrouver%20les%20tables%20dont%20les%20stats%20ne%20sont%20plus%20compil%C3%A9es%20en%20automatique\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/blog.capdata.fr\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=Retrouver%20les%20tables%20dont%20les%20stats%20ne%20sont%20plus%20compil%C3%A9es%20en%20automatique&#038;body=Article%20sur%20le%20blog%20de%20la%20Capdata%20Tech%20Team%20%3A%20:%20https%3A%2F%2Fblog.capdata.fr%2Findex.php%2Fwp-json%2Fwp%2Fv2%2Fposts%2F452\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/blog.capdata.fr\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/mail.png\" \/><\/a><p>Quand on tombe sur un probl\u00e8me de performance de requ\u00eate, il faut entre autres choses v\u00e9rifier si les statistiques sur les tables ont bien \u00e9t\u00e9 recompil\u00e9es r\u00e9cemment. En effet, ce n&#8217;est pas parce que les options &#8216;<em>auto create statistics<\/em>&#8216; et &#8216;<em>auto update statistics<\/em>&#8216; sont activ\u00e9es pour une base que ses tables et indexes ont toujours des statistiques \u00e0 jour.<\/p>\n<p>On va cr\u00e9er une base de test pour d\u00e9montrer ce point:<\/p>\n<pre><span style=\"color: #000080;\">create database test_statistics<\/span><\/pre>\n<p>On va v\u00e9rifier si les options de cr\u00e9ation et de mise \u00e0 jour auto sont bien activ\u00e9es<\/p>\n<pre><span style=\"color: #000080;\">select databasepropertyex('test_statistics','IsAutoCreateStatistics')\r\nselect databasepropertyex('test_statistics','IsAutoUpdateStatistics')<\/span><\/pre>\n<pre><span style=\"color: #008000;\"><em>1\r\n1<\/em><\/span><\/pre>\n<p>On cr\u00e9\u00e9 un peu de volum\u00e9trie et on ajoute les indexes clusteris\u00e9s<\/p>\n<pre><span style=\"color: #000080;\">use test_statistics\r\ncreate table STATS1(a numeric identity, b varchar(400))\r\ncreate table STATS2(a numeric identity, b varchar(400))\r\ninsert into STATS1 values (replicate('a',400))\r\ngo 1000\r\ninsert into STATS2 values (replicate('a',400))\r\ngo 1000\r\nalter table STATS1 add constraint PK_STATS1 primary key (a)\r\nalter table STATS2 add constraint PK_STATS2 primary key (a)<\/span><\/pre>\n<p>On fixe ensuite la date de derni\u00e8re mise \u00e0 jour des stats pour les deux tables avec STATS_DATE()<\/p>\n<pre><span style=\"color: #000080;\">select object_name(object_id), stats_date(object_id,stats_id) FROM sys.stats S\r\ninner<\/span><span style=\"color: #000080;\"> join sys.tables T on T.object_id = S.object_id\r\n\r\n<\/span><span style=\"color: #008000;\"><em>STATS1\u00a0\u00a0 \u00a02010-01-28 17:41:45.617\r\nSTATS2\u00a0\u00a0 \u00a02010-01-28 17:41:45.963<\/em>\r\n<\/span><\/pre>\n<p>A partir de l\u00e0, on va forcer le calcul des stats en <strong>NORECOMPUTE <\/strong>sur STATS1 seulement et rev\u00e9rifier les dates de stats. <strong>NORECOMPUTE <\/strong>aura pour effet de dire \u00e0 SQL Server de ne plus compiler en auto sur cette table.<\/p>\n<pre><span style=\"color: #000080;\">update statistics dbo.STATS1 PK_STATS1 WITH NORECOMPUTE<\/span>\r\n<em><span style=\"color: #808080;\"><span style=\"color: #008000;\">\u00a0Command(s) completed successfully.<\/span>\r\n<\/span><\/em><span style=\"color: #000080;\">\r\nselect object_name(S.object_id), stats_date(S.object_id,S.stats_id) FROM sys.stats S\r\ninner join sys.tables T on T.object_id = S.object_id\r\n<\/span><span style=\"color: #808080;\"><em><span style=\"color: #008000;\">STATS1\u00a0\u00a0 \u00a02010-01-28<\/span> <span style=\"color: #ff0000;\"><strong>17:42:14.350 <\/strong><\/span><\/em><\/span><em>\r\n<span style=\"color: #008000;\">STATS2\u00a0\u00a0 \u00a02010-01-28 17:41:45.963<\/span><\/em>\r\n<\/pre>\n<p>La date pour STATS1 a bien \u00e9t\u00e9 modifi\u00e9e. OK<br \/>\nOn va g\u00e9n\u00e9rer quelques perturbations identiques aux niveau des deux tables comme ajouter une colonne, supprimer des lignes, etc de mani\u00e8re \u00e0 d\u00e9clencher <strong>statman<\/strong>, l&#8217;utilitaire de recompilation auto des stats&#8230; On le verra passer dans une session Profiler:<\/p>\n<p><a href=\"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2010\/01\/autostats.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-455\" title=\"autostats\" src=\"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2010\/01\/autostats.png\" alt=\"\" width=\"469\" height=\"331\" srcset=\"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2010\/01\/autostats.png 469w, https:\/\/blog.capdata.fr\/wp-content\/uploads\/2010\/01\/autostats-300x211.png 300w, https:\/\/blog.capdata.fr\/wp-content\/uploads\/2010\/01\/autostats-250x175.png 250w\" sizes=\"auto, (max-width: 469px) 100vw, 469px\" \/><\/a><\/p>\n<p>Si\u00a0 on rev\u00e9rifie maintenant les dates de mise \u00e0 jour:<\/p>\n<pre><span style=\"color: #000080;\">select object_name(S.object_id), stats_date(S.object_id,S.stats_id) FROM sys.stats S\r\ninner join sys.tables T on T.object_id = S.object_id<\/span>\r\n<span style=\"color: #808080;\"><em><span style=\"color: #008000;\">STATS1\u00a0\u00a0 \u00a02010-01-28 17:42:14.350\r\n<\/span><span style=\"color: #008000;\">STATS2\u00a0\u00a0 \u00a02010-01-28 <\/span><span style=\"color: #ff0000;\"><strong>17:47:59.630<\/strong><\/span><\/em><\/span><\/pre>\n<p>Cette fois seule STATS2 a \u00e9t\u00e9 modifi\u00e9e. Il faudra donc que je pr\u00e9voie de mettre \u00e0 jour manuellement STATS1 \u00e0 intervalles r\u00e9guliers, 1 fois par jour la nuit par exemple.<\/p>\n<p><strong>Conclusion <\/strong>pour retrouver sur une base les tables qui sont pass\u00e9es en norecompute au niveau des stats:<\/p>\n<pre><span style=\"color: #000080;\">select T.name 'tablename', S.name 'statsname', S.no_recompute\r\nfrom sys.tables T\r\nINNER JOIN sys.stats S on S.object_id = T.object_id\r\nWHERE S.no_recompute = 1<\/span>\r\n\r\n<em><span style=\"color: #808080;\"><span style=\"color: #008000;\">tablename\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 statsname                        no_recompute\r\n-------------------  -------------------------------  ------------------------------\r\nSTATS1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PK_STATS1                       1\r\n<\/span>\r\n<\/span><\/em><\/pre>\n<p><span style=\"color: #000000;\"><em>A+ [David B.]<\/em><\/span><\/p>\n<p><em><span style=\"color: #808080;\"> <\/span><\/em><\/p>\n<p><script type=\"text\/javascript\" src=\"https:\/\/tcr.tynt.com\/javascripts\/Tracer.js?user=d4FlbGI04r35lZadbi-bpO\"><\/script><\/p>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fblog.capdata.fr%2Findex.php%2Fwp-json%2Fwp%2Fv2%2Fposts%2F452&#038;text=Article%20sur%20le%20blog%20de%20la%20Capdata%20Tech%20Team%20%3A%20\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/blog.capdata.fr\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Fblog.capdata.fr%2Findex.php%2Fwp-json%2Fwp%2Fv2%2Fposts%2F452&#038;title=Retrouver%20les%20tables%20dont%20les%20stats%20ne%20sont%20plus%20compil%C3%A9es%20en%20automatique\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/blog.capdata.fr\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=Retrouver%20les%20tables%20dont%20les%20stats%20ne%20sont%20plus%20compil%C3%A9es%20en%20automatique&#038;body=Article%20sur%20le%20blog%20de%20la%20Capdata%20Tech%20Team%20%3A%20:%20https%3A%2F%2Fblog.capdata.fr%2Findex.php%2Fwp-json%2Fwp%2Fv2%2Fposts%2F452\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/blog.capdata.fr\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>Quand on tombe sur un probl\u00e8me de performance de requ\u00eate, il faut entre autres choses v\u00e9rifier si les statistiques sur les tables ont bien \u00e9t\u00e9 recompil\u00e9es r\u00e9cemment. En effet, ce n&#8217;est pas parce que les options &#8216;auto create statistics&#8216; et&hellip; <a href=\"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/\" class=\"more-link\">Continuer la lecture <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":7920,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[61],"class_list":["post-452","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sqlserver","tag-statistiques"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Retrouver les tables dont les stats ne sont plus compil\u00e9es en automatique - Capdata TECH BLOG<\/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:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Retrouver les tables dont les stats ne sont plus compil\u00e9es en automatique - Capdata TECH BLOG\" \/>\n<meta property=\"og:description\" content=\"Quand on tombe sur un probl\u00e8me de performance de requ\u00eate, il faut entre autres choses v\u00e9rifier si les statistiques sur les tables ont bien \u00e9t\u00e9 recompil\u00e9es r\u00e9cemment. En effet, ce n&#8217;est pas parce que les options &#8216;auto create statistics&#8216; et&hellip; Continuer la lecture &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/\" \/>\n<meta property=\"og:site_name\" content=\"Capdata TECH BLOG\" \/>\n<meta property=\"article:published_time\" content=\"2010-01-28T17:09:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-01T16:57:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2011\/06\/611V2LCTvL._SY355_.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"355\" \/>\n\t<meta property=\"og:image:height\" content=\"355\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"David Baffaleuf\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"David Baffaleuf\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/\"},\"author\":{\"name\":\"David Baffaleuf\",\"@id\":\"https:\/\/blog.capdata.fr\/#\/schema\/person\/136297da9f61d6e4878abe0f48bc5fbf\"},\"headline\":\"Retrouver les tables dont les stats ne sont plus compil\u00e9es en automatique\",\"datePublished\":\"2010-01-28T17:09:28+00:00\",\"dateModified\":\"2022-12-01T16:57:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/\"},\"wordCount\":294,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/blog.capdata.fr\/#organization\"},\"keywords\":[\"statistiques\"],\"articleSection\":[\"SQL Server\"],\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/\",\"url\":\"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/\",\"name\":\"Retrouver les tables dont les stats ne sont plus compil\u00e9es en automatique - Capdata TECH BLOG\",\"isPartOf\":{\"@id\":\"https:\/\/blog.capdata.fr\/#website\"},\"datePublished\":\"2010-01-28T17:09:28+00:00\",\"dateModified\":\"2022-12-01T16:57:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/blog.capdata.fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Retrouver les tables dont les stats ne sont plus compil\u00e9es en automatique\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.capdata.fr\/#website\",\"url\":\"https:\/\/blog.capdata.fr\/\",\"name\":\"Capdata TECH BLOG\",\"description\":\"Le blog technique sur les bases de donn\u00e9es de CAP DATA Consulting\",\"publisher\":{\"@id\":\"https:\/\/blog.capdata.fr\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.capdata.fr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/blog.capdata.fr\/#organization\",\"name\":\"Capdata TECH BLOG\",\"url\":\"https:\/\/blog.capdata.fr\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/blog.capdata.fr\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2023\/01\/logo_capdata.webp\",\"contentUrl\":\"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2023\/01\/logo_capdata.webp\",\"width\":800,\"height\":254,\"caption\":\"Capdata TECH BLOG\"},\"image\":{\"@id\":\"https:\/\/blog.capdata.fr\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/cap-data-consulting\/mycompany\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.capdata.fr\/#\/schema\/person\/136297da9f61d6e4878abe0f48bc5fbf\",\"name\":\"David Baffaleuf\",\"sameAs\":[\"http:\/\/www.capdata.fr\"],\"url\":\"https:\/\/blog.capdata.fr\/index.php\/author\/dbaffaleuf\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Retrouver les tables dont les stats ne sont plus compil\u00e9es en automatique - Capdata TECH BLOG","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:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/","og_locale":"fr_FR","og_type":"article","og_title":"Retrouver les tables dont les stats ne sont plus compil\u00e9es en automatique - Capdata TECH BLOG","og_description":"Quand on tombe sur un probl\u00e8me de performance de requ\u00eate, il faut entre autres choses v\u00e9rifier si les statistiques sur les tables ont bien \u00e9t\u00e9 recompil\u00e9es r\u00e9cemment. En effet, ce n&#8217;est pas parce que les options &#8216;auto create statistics&#8216; et&hellip; Continuer la lecture &rarr;","og_url":"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/","og_site_name":"Capdata TECH BLOG","article_published_time":"2010-01-28T17:09:28+00:00","article_modified_time":"2022-12-01T16:57:24+00:00","og_image":[{"width":355,"height":355,"url":"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2011\/06\/611V2LCTvL._SY355_.jpg","type":"image\/jpeg"}],"author":"David Baffaleuf","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"David Baffaleuf","Dur\u00e9e de lecture estim\u00e9e":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/#article","isPartOf":{"@id":"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/"},"author":{"name":"David Baffaleuf","@id":"https:\/\/blog.capdata.fr\/#\/schema\/person\/136297da9f61d6e4878abe0f48bc5fbf"},"headline":"Retrouver les tables dont les stats ne sont plus compil\u00e9es en automatique","datePublished":"2010-01-28T17:09:28+00:00","dateModified":"2022-12-01T16:57:24+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/"},"wordCount":294,"commentCount":2,"publisher":{"@id":"https:\/\/blog.capdata.fr\/#organization"},"keywords":["statistiques"],"articleSection":["SQL Server"],"inLanguage":"fr-FR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/","url":"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/","name":"Retrouver les tables dont les stats ne sont plus compil\u00e9es en automatique - Capdata TECH BLOG","isPartOf":{"@id":"https:\/\/blog.capdata.fr\/#website"},"datePublished":"2010-01-28T17:09:28+00:00","dateModified":"2022-12-01T16:57:24+00:00","breadcrumb":{"@id":"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.capdata.fr\/index.php\/sql-server-retrouver-les-tables-dont-les-stats-ne-sont-plus-compilees-en-automatique\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/blog.capdata.fr\/"},{"@type":"ListItem","position":2,"name":"Retrouver les tables dont les stats ne sont plus compil\u00e9es en automatique"}]},{"@type":"WebSite","@id":"https:\/\/blog.capdata.fr\/#website","url":"https:\/\/blog.capdata.fr\/","name":"Capdata TECH BLOG","description":"Le blog technique sur les bases de donn\u00e9es de CAP DATA Consulting","publisher":{"@id":"https:\/\/blog.capdata.fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.capdata.fr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/blog.capdata.fr\/#organization","name":"Capdata TECH BLOG","url":"https:\/\/blog.capdata.fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/blog.capdata.fr\/#\/schema\/logo\/image\/","url":"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2023\/01\/logo_capdata.webp","contentUrl":"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2023\/01\/logo_capdata.webp","width":800,"height":254,"caption":"Capdata TECH BLOG"},"image":{"@id":"https:\/\/blog.capdata.fr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/company\/cap-data-consulting\/mycompany\/"]},{"@type":"Person","@id":"https:\/\/blog.capdata.fr\/#\/schema\/person\/136297da9f61d6e4878abe0f48bc5fbf","name":"David Baffaleuf","sameAs":["http:\/\/www.capdata.fr"],"url":"https:\/\/blog.capdata.fr\/index.php\/author\/dbaffaleuf\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/posts\/452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/comments?post=452"}],"version-history":[{"count":39,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/posts\/452\/revisions"}],"predecessor-version":[{"id":9547,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/posts\/452\/revisions\/9547"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/media\/7920"}],"wp:attachment":[{"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/media?parent=452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/categories?post=452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/tags?post=452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}