{"id":74634,"date":"2017-10-20T10:09:32","date_gmt":"2017-10-20T10:09:32","guid":{"rendered":"https:\/\/www.red-gate.com\/simple-talk\/?p=74634"},"modified":"2021-08-24T13:39:21","modified_gmt":"2021-08-24T13:39:21","slug":"extended-events-xe-profiler-ssms","status":"publish","type":"post","link":"https:\/\/www.red-gate.com\/simple-talk\/databases\/sql-server\/database-administration-sql-server\/extended-events-xe-profiler-ssms\/","title":{"rendered":"Extended Events Profiler (XE Profiler) in SSMS"},"content":{"rendered":"<p>Starting in <strong>SSMS<\/strong> version 17.3, we have an interesting new feature: <strong>Extended Events Profiler (XE\u00a0Profiler)<\/strong>. This new feature is in a very early stage, but it seems to be a first step to replace <strong>SQL Profiler<\/strong>, which is already deprecated.<\/p>\n<p>Two different session templates appear under the new <em>&#8216;XE Profiler&#8217;<\/em> item in object explorer: <em>&#8216;Standard&#8217;<\/em> and <em>&#8216;TSQL&#8217;<\/em>. They are not <strong>XE<\/strong> sessions by itself, they are templates. If you double-click one of them, a new live data window opens, capturing the server activity.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-74653\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2017\/10\/XEProfiler01.png\" alt=\"XE Profiler\" width=\"190\" height=\"90\" \/><\/p>\n<p>When we open the live data window, <strong>SSMS<\/strong> automatically creates a new <strong>XE<\/strong> session based on the template. The name of the session is a fixed one, <strong>SSMS<\/strong> will check if a session with this name already exists, and create it if not.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-74654\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2017\/10\/XEProfiler02.png\" alt=\"XE Profiler Sessions\" width=\"307\" height=\"184\" \/><\/p>\n<p>The templates capture a fixed set of events and we can&#8217;t create new templates on this early stage of the feature. The table below shows the events each template captures.<\/p>\n<table style=\"border-color: #913737;background-color: #7ec8fc;width: 351.8px\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr style=\"background-color: #7bd49e\">\n<td style=\"width: 170px;text-align: center\"><strong>Standard<\/strong><\/td>\n<td style=\"width: 177.8px;text-align: center\"><strong>TSQL<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 170px\">Attention<\/td>\n<td style=\"width: 177.8px\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 170px\">existing_connection<\/td>\n<td style=\"width: 177.8px\">existing_connection<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 170px\">login<\/td>\n<td style=\"width: 177.8px\">login<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 170px\">logout<\/td>\n<td style=\"width: 177.8px\">logout<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 170px\">rpc_completed<\/td>\n<td style=\"width: 177.8px\">rpc_starting<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 170px\">sql_batch_completed<\/td>\n<td style=\"width: 177.8px\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 170px\">sql_batch_starting<\/td>\n<td style=\"width: 177.8px\">sql_batch_starting<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Although we can&#8217;t create new templates or change the existing ones, we can make a workaround: If we edit the sessions used by the templates, changing the events and filters, the templates will use these edited sessions.<\/p>\n<p>On this early stage, the final result of this feature is similar to the <em>&#8216;Watch Live Data&#8217;<\/em> <strong>XE<\/strong> feature and a lot less powerful than <strong>SQL Profiler,<\/strong> due to the lack of customization. However, This feature seems to be the first stage for <strong>SQL Profiler<\/strong> replacement since it was set as deprecated and, due to that, it deserves our attention.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Starting in SSMS version 17.3, we have an interesting new feature: Extended Events Profiler (XE\u00a0Profiler). This new feature is in a very early stage, but it seems to be a first step to replace SQL Profiler, which is already deprecated. Two different session templates appear under the new &#8216;XE Profiler&#8217; item in object explorer: &#8216;Standard&#8217;&#8230;&hellip;<\/p>\n","protected":false},"author":50808,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[143527],"tags":[5966],"coauthors":[6810],"class_list":["post-74634","post","type-post","status-publish","format-standard","hentry","category-database-administration-sql-server","tag-monitor"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/74634","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/users\/50808"}],"replies":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/comments?post=74634"}],"version-history":[{"count":2,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/74634\/revisions"}],"predecessor-version":[{"id":74801,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/74634\/revisions\/74801"}],"wp:attachment":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/media?parent=74634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/categories?post=74634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/tags?post=74634"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/coauthors?post=74634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}