{"id":7479,"date":"2019-05-09T17:02:53","date_gmt":"2019-05-09T16:02:53","guid":{"rendered":"http:\/\/blog.capdata.fr\/?p=7479"},"modified":"2022-11-21T16:54:26","modified_gmt":"2022-11-21T15:54:26","slug":"determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server","status":"publish","type":"post","link":"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/","title":{"rendered":"D\u00e9terminer la fr\u00e9quence horaire d&#8217;ex\u00e9cution d&#8217;une proc\u00e9dure stock\u00e9e sous SQL Server"},"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%2F7479&#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%2F7479&#038;title=D%C3%A9terminer%20la%20fr%C3%A9quence%20horaire%20d%E2%80%99ex%C3%A9cution%20d%E2%80%99une%20proc%C3%A9dure%20stock%C3%A9e%20sous%20SQL%20Server\" 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=D%C3%A9terminer%20la%20fr%C3%A9quence%20horaire%20d%E2%80%99ex%C3%A9cution%20d%E2%80%99une%20proc%C3%A9dure%20stock%C3%A9e%20sous%20SQL%20Server&#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%2F7479\" 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>Pour des raisons purement m\u00e9tier, il m&#8217;a \u00e9t\u00e9 demand\u00e9 le nombre d&#8217;ex\u00e9cutions horaires d&#8217;une proc\u00e9dure stock\u00e9e &#8220;m\u00e9tier&#8221;. Le but \u00e9tait d&#8217;identifier les variations d&#8217;utilisation de la plateforme, sans se reposer sur des indicateurs trop techniques (charge CPU, batch request\/sec , concurrent sessions, etc&#8230;)<\/p>\n<p>Il y a diff\u00e9rents moyens qui peuvent \u00eatre plus ou moins fiables, dans certaines DMV ou avec le Data Collection, mais rien ne me convenait en terme de fiabilit\u00e9 et d&#8217;\u00e9l\u00e9gance.<\/p>\n<p>Et puis j&#8217;ai repens\u00e9 \u00e0 quelque chose que j&#8217;utilise encore trop peu : les Evenements Etendus (Extended Events). Je m&#8217;en sers peu car, par habitude, la bonne vieille TRACE (et son outil d\u00e9di\u00e9, le SQL Profiler) me conviennent pour la plupart des cas. Mais la Trace a un impact en terme de performance sup\u00e9rieur aux Extended Events. Et puis pour des comptages, il aurait fallu faire une usine \u00e0 gaz, o\u00f9 on aurait stock\u00e9 en table, puis ex\u00e9cut\u00e9 un job qui aurait identifi\u00e9 les ex\u00e9cution de la proc\u00e9dure stock\u00e9e, et ins\u00e9rer dans une table le r\u00e9sultat du comptage&#8230; Bref : pas \u00e9l\u00e9gant.<\/p>\n<p>Les Extended Events ont beaucoup progress\u00e9 depuis leur cr\u00e9ation, au point de couvrir l&#8217;int\u00e9gralit\u00e9 du p\u00e9rim\u00e8tre de ce que peut faire une Trace, sur les derni\u00e8res version de SQL Server. Et bien plus encore !<\/p>\n<p>Les Extended Events travaillent \u00e0 bas niveau, et n&#8217;impactent pas autant le moteur en terme de performance. On peut aussi d\u00e9cider facilement de la destination de l&#8217;Extended Events : une table, un fichier, un ring buffer (pour consommation imm\u00e9diate)&#8230; Mais aussi un compteur !<\/p>\n<p>Nous voila donc \u00e0 faire la man\u0153uvre suivante :<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n\r\nCREATE EVENT SESSION [MySpCounter] ON SERVER\r\nADD EVENT sqlserver.sql_batch_completed(SET collect_batch_text=(1)\r\nACTION(sqlserver.database_name,sqlserver.sql_text)\r\nWHERE ([sqlserver].[like_i_sql_unicode_string]([sqlserver].[sql_text],N'%exec dbo.GetUserByReput%')))\r\nADD TARGET package0.event_counter\r\nWITH (MAX_MEMORY=4096 KB,EVENT_RETENTION_MODE=ALLOW_SINGLE_EVENT_LOSS,MAX_DISPATCH_LATENCY=30 SECONDS,MAX_EVENT_SIZE=0 KB, MEMORY_PARTITION_MODE=NONE,TRACK_CAUSALITY=OFF,STARTUP_STATE=ON)\r\nGO\r\nALTER EVENT SESSION MySpCounter ON SERVER STATE = START ; \r\n\r\n<\/pre>\n<p>Ici, je trace donc sur le serveur l&#8217;ex\u00e9cution de la proc\u00e9dure dbo.GetUserByRep (suivi d&#8217;un % pour r\u00e9cup\u00e9rer tout ce qui pourrait \u00eatre plac\u00e9 en param\u00e8tre).<\/p>\n<p>Pour pouvoir exploiter le r\u00e9sultat de cette Extended Events, j&#8217;ai besoin d&#8217;une petite table qui contiendra les informations :<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n\r\nCREATE TABLE [dbo].[MySPCounter](\r\n[id] [int] IDENTITY(1,1) NOT NULL,\r\n[measure_date] [datetime] NOT NULL,\r\n[value] [int] NOT NULL )\r\n\r\n<\/pre>\n<p>Celle-ci contient donc un identifiant (au cas o\u00f9&#8230;), une date de mesure de l&#8217;Extended Event, et la valeur du compteur.<\/p>\n<p>Ensuite, je fais un job dans l&#8217;agent qui ira lire la valeur de ce compteur, l\u2019ins\u00e9rera dans la table et remet enfin le compteur \u00e0 z\u00e9ro. Ici, je ne mettrai pas le code de cr\u00e9ation du job, mais juste de son contenu :<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n\r\ndeclare @MyValue int\r\nselect @MyValue = execution_count FROM sys.dm_xe_session_targets AS xet\r\nJOIN sys.dm_xe_sessions AS xe\r\nON (xe.address = xet.event_session_address)\r\nWHERE xe.name = 'MySpCounter' and target_name = 'event_counter'\r\n\r\nINSERT INTO msdb.dbo.MySPCounter values (getdate(), @MyValue)\r\n\r\nalter event session MySpCounter ON server STATE = STOP ;\r\nalter event session MySpCounter ON server STATE = START;\r\n\r\n<\/pre>\n<p>On retrouvera donc une table o\u00f9 \u00e0 intervalle r\u00e9gulier, on aura le nombre d&#8217;ex\u00e9cution de notre proc\u00e9dure stock\u00e9e ! Il n&#8217;y a plus qu&#8217;\u00e0 connecter un Excel, un PowerBI ou l&#8217;outil que vous pr\u00e9f\u00e9rez, et vous pourrez faire de jolis graphiques qui raviront vos responsables m\u00e9tiers.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7506\" src=\"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2019\/05\/graphs_appels_SP.jpg\" alt=\"\" width=\"816\" height=\"431\" srcset=\"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2019\/05\/graphs_appels_SP.jpg 816w, https:\/\/blog.capdata.fr\/wp-content\/uploads\/2019\/05\/graphs_appels_SP-300x158.jpg 300w, https:\/\/blog.capdata.fr\/wp-content\/uploads\/2019\/05\/graphs_appels_SP-768x406.jpg 768w\" sizes=\"auto, (max-width: 816px) 100vw, 816px\" \/><\/p>\n<p>&nbsp;<\/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%2F7479&#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%2F7479&#038;title=D%C3%A9terminer%20la%20fr%C3%A9quence%20horaire%20d%E2%80%99ex%C3%A9cution%20d%E2%80%99une%20proc%C3%A9dure%20stock%C3%A9e%20sous%20SQL%20Server\" 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=D%C3%A9terminer%20la%20fr%C3%A9quence%20horaire%20d%E2%80%99ex%C3%A9cution%20d%E2%80%99une%20proc%C3%A9dure%20stock%C3%A9e%20sous%20SQL%20Server&#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%2F7479\" 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>Pour des raisons purement m\u00e9tier, il m&#8217;a \u00e9t\u00e9 demand\u00e9 le nombre d&#8217;ex\u00e9cutions horaires d&#8217;une proc\u00e9dure stock\u00e9e &#8220;m\u00e9tier&#8221;. Le but \u00e9tait d&#8217;identifier les variations d&#8217;utilisation de la plateforme, sans se reposer sur des indicateurs trop techniques (charge CPU, batch request\/sec ,&hellip; <a href=\"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/\" class=\"more-link\">Continuer la lecture <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":7506,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[322,323,319,318,320,321],"class_list":["post-7479","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sqlserver","tag-comptage","tag-compter","tag-evenements-etendus","tag-extended-events","tag-procedure-stockees","tag-stored-procedures"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>D\u00e9terminer la fr\u00e9quence horaire d&#039;ex\u00e9cution d&#039;une proc\u00e9dure stock\u00e9e sous SQL Server - 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\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"D\u00e9terminer la fr\u00e9quence horaire d&#039;ex\u00e9cution d&#039;une proc\u00e9dure stock\u00e9e sous SQL Server - Capdata TECH BLOG\" \/>\n<meta property=\"og:description\" content=\"Pour des raisons purement m\u00e9tier, il m&#8217;a \u00e9t\u00e9 demand\u00e9 le nombre d&#8217;ex\u00e9cutions horaires d&#8217;une proc\u00e9dure stock\u00e9e &#8220;m\u00e9tier&#8221;. Le but \u00e9tait d&#8217;identifier les variations d&#8217;utilisation de la plateforme, sans se reposer sur des indicateurs trop techniques (charge CPU, batch request\/sec ,&hellip; Continuer la lecture &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Capdata TECH BLOG\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-09T16:02:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-21T15:54:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2019\/05\/graphs_appels_SP.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"816\" \/>\n\t<meta property=\"og:image:height\" content=\"431\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Capdata team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"Capdata team\" \/>\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\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/\"},\"author\":{\"name\":\"Capdata team\",\"@id\":\"https:\/\/blog.capdata.fr\/#\/schema\/person\/bfd9395c8ba4fa125792a543377035e9\"},\"headline\":\"D\u00e9terminer la fr\u00e9quence horaire d&#8217;ex\u00e9cution d&#8217;une proc\u00e9dure stock\u00e9e sous SQL Server\",\"datePublished\":\"2019-05-09T16:02:53+00:00\",\"dateModified\":\"2022-11-21T15:54:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/\"},\"wordCount\":628,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/blog.capdata.fr\/#organization\"},\"keywords\":[\"comptage\",\"compter\",\"\u00e9venements \u00e9tendus\",\"extended events\",\"proc\u00e9dure stock\u00e9es\",\"stored procedures\"],\"articleSection\":[\"SQL Server\"],\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/\",\"url\":\"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/\",\"name\":\"D\u00e9terminer la fr\u00e9quence horaire d'ex\u00e9cution d'une proc\u00e9dure stock\u00e9e sous SQL Server - Capdata TECH BLOG\",\"isPartOf\":{\"@id\":\"https:\/\/blog.capdata.fr\/#website\"},\"datePublished\":\"2019-05-09T16:02:53+00:00\",\"dateModified\":\"2022-11-21T15:54:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/blog.capdata.fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"D\u00e9terminer la fr\u00e9quence horaire d&#8217;ex\u00e9cution d&#8217;une proc\u00e9dure stock\u00e9e sous SQL Server\"}]},{\"@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\/bfd9395c8ba4fa125792a543377035e9\",\"name\":\"Capdata team\",\"sameAs\":[\"https:\/\/www.capdata.fr\"],\"url\":\"https:\/\/blog.capdata.fr\/index.php\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"D\u00e9terminer la fr\u00e9quence horaire d'ex\u00e9cution d'une proc\u00e9dure stock\u00e9e sous SQL Server - 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\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/","og_locale":"fr_FR","og_type":"article","og_title":"D\u00e9terminer la fr\u00e9quence horaire d'ex\u00e9cution d'une proc\u00e9dure stock\u00e9e sous SQL Server - Capdata TECH BLOG","og_description":"Pour des raisons purement m\u00e9tier, il m&#8217;a \u00e9t\u00e9 demand\u00e9 le nombre d&#8217;ex\u00e9cutions horaires d&#8217;une proc\u00e9dure stock\u00e9e &#8220;m\u00e9tier&#8221;. Le but \u00e9tait d&#8217;identifier les variations d&#8217;utilisation de la plateforme, sans se reposer sur des indicateurs trop techniques (charge CPU, batch request\/sec ,&hellip; Continuer la lecture &rarr;","og_url":"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/","og_site_name":"Capdata TECH BLOG","article_published_time":"2019-05-09T16:02:53+00:00","article_modified_time":"2022-11-21T15:54:26+00:00","og_image":[{"width":816,"height":431,"url":"https:\/\/blog.capdata.fr\/wp-content\/uploads\/2019\/05\/graphs_appels_SP.jpg","type":"image\/jpeg"}],"author":"Capdata team","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"Capdata team","Dur\u00e9e de lecture estim\u00e9e":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/#article","isPartOf":{"@id":"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/"},"author":{"name":"Capdata team","@id":"https:\/\/blog.capdata.fr\/#\/schema\/person\/bfd9395c8ba4fa125792a543377035e9"},"headline":"D\u00e9terminer la fr\u00e9quence horaire d&#8217;ex\u00e9cution d&#8217;une proc\u00e9dure stock\u00e9e sous SQL Server","datePublished":"2019-05-09T16:02:53+00:00","dateModified":"2022-11-21T15:54:26+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/"},"wordCount":628,"commentCount":0,"publisher":{"@id":"https:\/\/blog.capdata.fr\/#organization"},"keywords":["comptage","compter","\u00e9venements \u00e9tendus","extended events","proc\u00e9dure stock\u00e9es","stored procedures"],"articleSection":["SQL Server"],"inLanguage":"fr-FR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/","url":"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/","name":"D\u00e9terminer la fr\u00e9quence horaire d'ex\u00e9cution d'une proc\u00e9dure stock\u00e9e sous SQL Server - Capdata TECH BLOG","isPartOf":{"@id":"https:\/\/blog.capdata.fr\/#website"},"datePublished":"2019-05-09T16:02:53+00:00","dateModified":"2022-11-21T15:54:26+00:00","breadcrumb":{"@id":"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.capdata.fr\/index.php\/determiner-la-frequence-horaire-dexecution-dune-procedure-stockee-sous-sql-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/blog.capdata.fr\/"},{"@type":"ListItem","position":2,"name":"D\u00e9terminer la fr\u00e9quence horaire d&#8217;ex\u00e9cution d&#8217;une proc\u00e9dure stock\u00e9e sous SQL Server"}]},{"@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\/bfd9395c8ba4fa125792a543377035e9","name":"Capdata team","sameAs":["https:\/\/www.capdata.fr"],"url":"https:\/\/blog.capdata.fr\/index.php\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/posts\/7479","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/comments?post=7479"}],"version-history":[{"count":6,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/posts\/7479\/revisions"}],"predecessor-version":[{"id":9511,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/posts\/7479\/revisions\/9511"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/media\/7506"}],"wp:attachment":[{"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/media?parent=7479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/categories?post=7479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capdata.fr\/index.php\/wp-json\/wp\/v2\/tags?post=7479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}