{"id":184,"date":"2009-08-05T09:56:42","date_gmt":"2009-08-05T08:56:42","guid":{"rendered":"https:\/\/www.alldb.fr\/blogs\/?p=184"},"modified":"2023-04-20T07:04:47","modified_gmt":"2023-04-20T06:04:47","slug":"sql-server-sessions-consommatrices-dans-tempdb","status":"publish","type":"post","link":"https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/","title":{"rendered":"Sessions consommatrices dans tempdb"},"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%2F184&#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%2F184&#038;title=Sessions%20consommatrices%20dans%20tempdb\" 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=Sessions%20consommatrices%20dans%20tempdb&#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%2F184\" 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>Je sais ce que vous allez dire: on l&#8217;a d\u00e9j\u00e0 vu partout, il y a d\u00e9j\u00e0 un million d&#8217;articles sur le sujet, quel int\u00e9r\u00eat pour une soci\u00e9t\u00e9 qui se d\u00e9fend justement de poster sur des sujets originaux, etc&#8230;<\/p>\n<p>Je vous r\u00e9pondrai que le probl\u00e8me n&#8217;est pas trivial. Tout le monde utilise les vues DMV pour r\u00e9cup\u00e9rer les infos de la session qui occupe l&#8217;espace dans tempdb, notamment le texte SQL de la requ\u00eate:<br \/>\n&#8211; <em>sys.dm_db_task_space_usage<\/em>: pour voir l&#8217;espace utilis\u00e9 par session.<br \/>\n&#8211; <em>sys.dm_exec_requests<\/em> ou <em>sys.dm_exec_query_stats<\/em> + <em>cross apply sys.dm_exec_sql_text(sql_handle)<\/em>: pour plus d&#8217;infos sur les sessions (stats + texte des requ\u00eates).<\/p>\n<p>Seulement voil\u00e0: les sessions dont le plan a \u00e9t\u00e9 purg\u00e9 du cache ne sont plus visibles dans les DMV sys.dm_exec&#8230; donc la jointure entre sys.dm_db_task_space_usage et sys.dm_exec&#8230; ne renverra pas d&#8217;infos pour des sessions qui utilisent pourtant bel et bien de l&#8217;espace dans tempdb.<\/p>\n<p>Donc il faut avoir recours au bon vieux  <strong><em>dbcc inputbuffer<\/em><\/strong> pour r\u00e9cup\u00e9rer tout \u00e7a.<\/p>\n<p>1) D&#8217;abord, on va cr\u00e9er les tables de recueil.<\/p>\n<p>1.1 DBCCINPUTBUFFER va nous permettre de r\u00e9cup\u00e9rer le contenu du dbcc inputbuffer par session:<\/p>\n<pre>CREATE TABLE tempdb.guest.DBCCINPUTBUFFER\r\n(\r\nEventType varchar(50),\r\nParameters int,\r\nSQLText varchar(8000)\r\n)<\/pre>\n<p>1.2 DBCCSHOWFILESTATS va nous permettre de r\u00e9cup\u00e9rer l&#8217;espace total et utilis\u00e9 dans tempdb:<\/p>\n<pre>CREATE TABLE tempdb.guest.DBCCSHOWFILESTATS\r\n(\r\n[fileid] [int], [filegroup] [int],\r\n[totalextents] [int], [usedextents] [int],\r\n[name] [varchar] (255), [filename] [varchar] (255)\r\n)<\/pre>\n<p>1.3 monitorTempdb sera notre table finale d&#8217;historique.<\/p>\n<pre>CREATE TABLE tempdb.guest.monitorTempdb\r\n(\r\ncurdate datetime,\r\nspaceintempdb bigint,\r\nspaceusedintempdb bigint,\r\nspid int,\r\nsqltext varchar(8000),\r\ninternal_objects_alloc_MB bigint,\r\ninternal_objects_dealloc_MB bigint,\r\nuser_objects_alloc_MB bigint,\r\nuser_objects_dealloc_MB bigint,\r\nprogram_name varchar(100),\r\nlogin_time datetime,\r\nhostname varchar(20),\r\nlogin_name varchar(100)\r\n)<\/pre>\n<p>2) Par session r\u00e9cup\u00e9rer les infos et le texte de la requ\u00eate: on va placer les sessions consommatrices ainsi que les espaces consomm\u00e9s dans un curseur, puis boucler pour chaque session_id et r\u00e9cup\u00e9rer plus d&#8217;infos (program_name, login, etc&#8230; depuis sys.dm_exec_sessions, la seule DMV qui affiche toutes les sessions actives ou non) et le dernier texte SQL g\u00e9n\u00e9r\u00e9:<\/p>\n<pre>use tempdb\r\ngo\r\ndeclare\r\n\t@spid int,\r\n\t@sqltext varchar(8000),\r\n\t@internal_objects_alloc_page_count bigint,\r\n\t@internal_objects_dealloc_page_count bigint,\r\n\t@user_objects_alloc_page_count bigint,\r\n\t@user_objects_dealloc_page_count bigint,\r\n\t@program_name varchar(100),\r\n\t@login_time datetime,\r\n\t@hostname varchar(20),\r\n\t@login_name varchar(100),\r\n\t@SQLQUERY varchar(100),\r\n\t@spaceintempdb bigint,\r\n\t@spaceusedintempdb  bigint\r\n\r\ndeclare cr_sqltext CURSOR READ_ONLY for\r\nselect session_id,internal_objects_alloc_page_count,internal_objects_dealloc_page_count,\r\nuser_objects_alloc_page_count, user_objects_dealloc_page_count\r\nfrom sys.dm_db_task_space_usage where internal_objects_alloc_page_count &gt; 12000 \r\n\r\nopen cr_sqltext\r\nfetch next from cr_sqltext into\r\n\t@spid,\r\n\t@internal_objects_alloc_page_count,\r\n\t@internal_objects_dealloc_page_count,\r\n\t@user_objects_alloc_page_count,\r\n\t@user_objects_dealloc_page_count\r\n\r\nwhile @@fetch_status = 0\r\nbegin\r\n\tselect\r\n\t\t@program_name = program_name,\r\n\t\t@login_time = login_time,\r\n\t\t@hostname = host_name,\r\n\t\t@login_name = login_name\r\n\tfrom sys.dm_exec_sessions where session_id = @spid\r\n\r\n\tselect @SQLQUERY = 'dbcc inputbuffer('+convert(char(3),@spid)+')'\r\n\r\n\tinsert into tempdb.guest.DBCCINPUTBUFFER exec (@SQLQUERY)\r\n\tselect @sqltext = SQLText from tempdb.guest.DBCCINPUTBUFFER \r\n\r\n\tinsert into tempdb.guest.DBCCSHOWFILESTATS exec ('DBCC showfilestats with NO_INFOMSGS')\r\n\tselect\r\n\t\t@spaceintempdb = sum(totalextents)\/16,\r\n\t\t@spaceusedintempdb = sum(usedextents)\/16\r\n\tfrom tempdb.guest.DBCCSHOWFILESTATS\r\n\r\n\tdelete from tempdb.guest.DBCCINPUTBUFFER\r\n\tdelete from tempdb.guest.DBCCSHOWFILESTATS\r\n\r\n\tinsert tempdb.guest.monitorTempdb values\r\n\t(getdate(),\r\n\t@spaceintempdb,\r\n\t@spaceusedintempdb ,\r\n\t@spid, \t@sqltext,\r\n\t@internal_objects_alloc_page_count*8192\/1048576 ,\r\n\t@internal_objects_dealloc_page_count*8192\/1048576 ,\r\n\t@user_objects_alloc_page_count*8192\/1048576 ,\r\n\t@user_objects_dealloc_page_count*8192\/1048576 ,\r\n\t@program_name ,\r\n\t@login_time ,\r\n\t@hostname ,\r\n\t@login_name)\r\n\r\nfetch next from cr_sqltext into\r\n\t@spid,\r\n\t@internal_objects_alloc_page_count,\r\n\t@internal_objects_dealloc_page_count,\r\n\t@user_objects_alloc_page_count,\r\n\t@user_objects_dealloc_page_count\r\n\r\nend\r\nclose cr_sqltext\r\ndeallocate cr_sqltext\r\ngo<\/pre>\n<p>Cette derni\u00e8re partie peut \u00eatre mise dans un job planifi\u00e9 toutes les minutes par exemple. C&#8217;est ainsi que j&#8217;ai d\u00e9couvert que sp_MSget_repl_commands et sp_MSdistribution_cleanup (procs de r\u00e9pli) peuvent \u00eatre extr\u00eamement consommatrices lorsque la file des requ\u00eates \u00e0 r\u00e9pliquer est tr\u00e8s importante.<\/p>\n<p>A+ [ David B. ]<\/p>\n<p><script src=\"https:\/\/tcr.tynt.com\/javascripts\/Tracer.js?user=d4FlbGI04r35lZadbi-bpO\" type=\"text\/javascript\"><\/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%2F184&#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%2F184&#038;title=Sessions%20consommatrices%20dans%20tempdb\" 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=Sessions%20consommatrices%20dans%20tempdb&#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%2F184\" 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>Je sais ce que vous allez dire: on l&#8217;a d\u00e9j\u00e0 vu partout, il y a d\u00e9j\u00e0 un million d&#8217;articles sur le sujet, quel int\u00e9r\u00eat pour une soci\u00e9t\u00e9 qui se d\u00e9fend justement de poster sur des sujets originaux, etc&#8230; Je vous&hellip; <a href=\"https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/\" class=\"more-link\">Continuer la lecture <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":7978,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,450],"tags":[57,54,55,56,53,40],"class_list":["post-184","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sqlserver","category-vintage","tag-dbcc-inputbuffer","tag-dbccinputbuffer","tag-dbccshowfilestats","tag-monitortempdb","tag-sessions","tag-tempdb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Sessions consommatrices dans tempdb - 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-sessions-consommatrices-dans-tempdb\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Sessions consommatrices dans tempdb - Capdata TECH BLOG\" \/>\n<meta property=\"og:description\" content=\"Je sais ce que vous allez dire: on l&#8217;a d\u00e9j\u00e0 vu partout, il y a d\u00e9j\u00e0 un million d&#8217;articles sur le sujet, quel int\u00e9r\u00eat pour une soci\u00e9t\u00e9 qui se d\u00e9fend justement de poster sur des sujets originaux, etc&#8230; Je vous&hellip; Continuer la lecture &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/\" \/>\n<meta property=\"og:site_name\" content=\"Capdata TECH BLOG\" \/>\n<meta property=\"article:published_time\" content=\"2009-08-05T08:56:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-20T06:04:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2009\/08\/images-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"225\" \/>\n\t<meta property=\"og:image:height\" content=\"225\" \/>\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-sessions-consommatrices-dans-tempdb\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/\"},\"author\":{\"name\":\"David Baffaleuf\",\"@id\":\"https:\/\/blog.capdata.fr\/#\/schema\/person\/136297da9f61d6e4878abe0f48bc5fbf\"},\"headline\":\"Sessions consommatrices dans tempdb\",\"datePublished\":\"2009-08-05T08:56:42+00:00\",\"dateModified\":\"2023-04-20T06:04:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/\"},\"wordCount\":369,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/blog.capdata.fr\/#organization\"},\"keywords\":[\"dbcc inputbuffer\",\"DBCCINPUTBUFFER\",\"DBCCSHOWFILESTATS\",\"monitorTempdb\",\"sessions\",\"tempdb\"],\"articleSection\":[\"SQL Server\",\"Vintage\"],\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/\",\"url\":\"https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/\",\"name\":\"Sessions consommatrices dans tempdb - Capdata TECH BLOG\",\"isPartOf\":{\"@id\":\"https:\/\/blog.capdata.fr\/#website\"},\"datePublished\":\"2009-08-05T08:56:42+00:00\",\"dateModified\":\"2023-04-20T06:04:47+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/blog.capdata.fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sessions consommatrices dans tempdb\"}]},{\"@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":"Sessions consommatrices dans tempdb - 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-sessions-consommatrices-dans-tempdb\/","og_locale":"fr_FR","og_type":"article","og_title":"Sessions consommatrices dans tempdb - Capdata TECH BLOG","og_description":"Je sais ce que vous allez dire: on l&#8217;a d\u00e9j\u00e0 vu partout, il y a d\u00e9j\u00e0 un million d&#8217;articles sur le sujet, quel int\u00e9r\u00eat pour une soci\u00e9t\u00e9 qui se d\u00e9fend justement de poster sur des sujets originaux, etc&#8230; Je vous&hellip; Continuer la lecture &rarr;","og_url":"https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/","og_site_name":"Capdata TECH BLOG","article_published_time":"2009-08-05T08:56:42+00:00","article_modified_time":"2023-04-20T06:04:47+00:00","og_image":[{"width":225,"height":225,"url":"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2009\/08\/images-1.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-sessions-consommatrices-dans-tempdb\/#article","isPartOf":{"@id":"https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/"},"author":{"name":"David Baffaleuf","@id":"https:\/\/blog.capdata.fr\/#\/schema\/person\/136297da9f61d6e4878abe0f48bc5fbf"},"headline":"Sessions consommatrices dans tempdb","datePublished":"2009-08-05T08:56:42+00:00","dateModified":"2023-04-20T06:04:47+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/"},"wordCount":369,"commentCount":1,"publisher":{"@id":"https:\/\/blog.capdata.fr\/#organization"},"keywords":["dbcc inputbuffer","DBCCINPUTBUFFER","DBCCSHOWFILESTATS","monitorTempdb","sessions","tempdb"],"articleSection":["SQL Server","Vintage"],"inLanguage":"fr-FR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/","url":"https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/","name":"Sessions consommatrices dans tempdb - Capdata TECH BLOG","isPartOf":{"@id":"https:\/\/blog.capdata.fr\/#website"},"datePublished":"2009-08-05T08:56:42+00:00","dateModified":"2023-04-20T06:04:47+00:00","breadcrumb":{"@id":"https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.capdata.fr\/index.php\/sql-server-sessions-consommatrices-dans-tempdb\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/blog.capdata.fr\/"},{"@type":"ListItem","position":2,"name":"Sessions consommatrices dans tempdb"}]},{"@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\/184","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=184"}],"version-history":[{"count":30,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/posts\/184\/revisions"}],"predecessor-version":[{"id":9593,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/posts\/184\/revisions\/9593"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/media\/7978"}],"wp:attachment":[{"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/media?parent=184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/categories?post=184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/tags?post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}