{"id":560,"date":"2010-12-04T22:18:00","date_gmt":"2010-12-04T22:18:00","guid":{"rendered":"\/blogs\/jonathan\/post\/An-XEvent-a-Day-(4-of-31)-Querying-the-Session-Definition-and-Active-Session-DMVe28099s.aspx"},"modified":"2017-04-13T12:17:41","modified_gmt":"2017-04-13T16:17:41","slug":"extended-events-dmvs","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-dmvs\/","title":{"rendered":"Extended Events Series (4 of 31) &#8211; Querying the Session Definition and Active Session DMV\u2019s"},"content":{"rendered":"<p>\nYesterdays post, <a href=\"https:\/\/www.sqlskills.com\/blogs\/jonathan\/an-xevent-a-day-3-of-31-managing-event-sessions\/\" target=\"_blank\">Managing Event Sessions<\/a>, showed how to manage Event Sessions inside the Extended Events framework in SQL Server. In today&#39;s post, we&rsquo;ll take a look at how to find information about the defined Event Sessions that already exist inside a SQL Server using the Session Definition DMV&rsquo;s and how to find information about the Active Event Sessions that exist using the Active Session DMV&rsquo;s.\n<\/p>\n<h2>Extended Events Session Definition DMV&rsquo;s<\/h2>\n<p>\nThe Session Definition DMV&rsquo;s provide information about the Event Sessions that have been defined in the Extended Events Engine and may or may not be actively running against the SQL Server Instance.&nbsp; Five DMV&rsquo;s provide information about the Event Sessions that exist inside of the Extended Events Engine; <a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/relational-databases\/system-catalog-views\/sys-server-event-sessions-transact-sql\" target=\"_blank\">sys.server_event_sessions<\/a>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/relational-databases\/system-catalog-views\/sys-server-event-session-events-transact-sql\" target=\"_blank\">sys.server_event_session_events<\/a>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/relational-databases\/system-catalog-views\/sys-server-event-session-actions-transact-sql\" target=\"_blank\">sys.server_event_session_actions<\/a>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/relational-databases\/system-catalog-views\/sys-server-event-session-targets-transact-sql\" target=\"_blank\">sys.server_event_session_targets<\/a>, and <a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/relational-databases\/system-catalog-views\/sys-server-event-session-fields-transact-sql\" target=\"_blank\">sys.server_event_session_fields<\/a>.\n<\/p>\n<h3>sys.server_event_sessions<\/h3>\n<p>\nThe sys.server_event_sessions DMV provides information about the Event Sessions that exist inside of the Extended Events Engine.&nbsp; The Session level options for the Event Session can be retrieved from this DMV, to determine how the Event Session is configured.\n<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n-- Session level information for current Event Sessions\r\nSELECT \r\n   s.name,\r\n   s.max_memory,\r\n   s.event_retention_mode_desc,\r\n   s.max_dispatch_latency,\r\n   s.max_event_size,\r\n   s.memory_partition_mode_desc,\r\n   s.track_causality,\r\n   s.startup_state\r\nFROM sys.server_event_sessions AS s;\r\n<\/pre>\n<h3>sys.server_event_session_events<\/h3>\n<p>\nThe sys.server_event_session_events DMV provides information about the specific Events that are defined in the Event Sessions maintained by the Extended Events Engine.&nbsp; This DMV also returns the defined Predicates for the Events that are included for collection in Event Sessions on the server.&nbsp; The event_session_id column can be used to join this DMV to sys.server_event_sessions as shown below.\n<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n-- Get events in a session\r\nSELECT \r\n   ses.name AS session_name,\r\n   sese.package AS event_package,\r\n   sese.name AS event_name,\r\n   sese.predicate AS event_predicate\r\nFROM sys.server_event_sessions AS ses\r\nINNER JOIN sys.server_event_session_events AS sese\r\n    ON ses.event_session_id = sese.event_session_id;\r\n<\/pre>\n<h3>sys.server_event_session_actions<\/h3>\n<p>\nThe sys.server_event_session_actions DMV contains one row for each of the Actions that have been added to an Event in an Event Session.&nbsp; If the same Action was added to multiple Events, there would be a separate row per Event and Action pair in the Event Session.&nbsp; The event_session_id and event_id columns are used to join this DMV to the sys.server_event_session_events DMV.\n<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n-- Get actions \r\nSELECT \r\n   ses.name AS session_name,\r\n   sese.package AS event_package,\r\n   sese.name AS event_name,\r\n   sese.predicate AS event_predicate,\r\n   sesa.package AS action_package,\r\n   sesa.name AS action_name\r\nFROM sys.server_event_sessions AS ses\r\nINNER JOIN sys.server_event_session_events AS sese\r\n    ON ses.event_session_id = sese.event_session_id\r\nINNER JOIN sys.server_event_session_actions AS sesa\r\n     ON ses.event_session_id = sesa.event_session_id\r\n    AND sese.event_id = sesa.event_id;\r\n<\/pre>\n<h3>sys.server_event_session_targets<\/h3>\n<p>\nThe sys.server_event_session_targets DMV contains one row for each of the configured Targets that are defined for an Event Session.&nbsp; The event_session_id column is used to join this DMV to the sys.server_event_sessions DMV.\n<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n-- Get target information\r\nSELECT \r\n   ses.name AS session_name,\r\n   sest.name AS target_name\r\nFROM sys.server_event_sessions AS ses\r\nINNER JOIN sys.server_event_session_targets AS sest\r\n   ON ses.event_session_id = sest.event_session_id;\r\n<\/pre>\n<h3>sys.server_event_session_fields<\/h3>\n<p>\nThe sys.server_event_session_fields DMV contains one row for each of the configured options for each Target defined for an Event Session.&nbsp; The event_session_id and target_id columns are used to join this DMV to the sys.server_event_session_targets DMV.\n<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n-- Get target option information\r\nSELECT \r\n   ses.name AS session_name,\r\n   sest.name AS target_name,\r\n   sesf.name AS option_name,\r\n   sesf.value AS option_value\r\nFROM sys.server_event_sessions AS ses\r\nINNER JOIN sys.server_event_session_targets AS sest\r\n   ON ses.event_session_id = sest.event_session_id\r\nINNER JOIN sys.server_event_session_fields AS sesf\r\n   ON sest.event_session_id = sesf.event_session_id\r\n   AND sest.target_id = sesf.object_id;\r\n<\/pre>\n<h2>Extended Events Active Session DMV&rsquo;s<\/h2>\n<p>\nThe Active Session DMV&rsquo;s provide information about the Event Sessions that are currently in a started state on a SQL Server Instance.&nbsp; Five DMV&rsquo;s make up the group of Active Session DMV&rsquo;s; <a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/relational-databases\/system-dynamic-management-views\/sys-dm-xe-sessions-transact-sql\" target=\"_blank\">sys.dm_xe_sessions<\/a>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/relational-databases\/system-dynamic-management-views\/sys-dm-xe-session-events-transact-sql\" target=\"_blank\">sys.dm_xe_session_events<\/a>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/relational-databases\/system-dynamic-management-views\/sys-dm-xe-session-event-actions-transact-sql\" target=\"_blank\">sys.dm_xe_session_event_actions<\/a>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/relational-databases\/system-dynamic-management-views\/sys-dm-xe-session-targets-transact-sql\" target=\"_blank\">sys.dm_xe_session_targets<\/a>, and <a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/relational-databases\/system-dynamic-management-views\/sys-dm-xe-session-object-columns-transact-sql\" target=\"_blank\">sys.dm_xe_session_object_columns<\/a>.\n<\/p>\n<h3>sys.dm_xe_sessions<\/h3>\n<p>\nThe sys.dm_xe_sessions DMV contains one row for each active Event Session (STATE=START) in the SQL Server Instance, and provides information about the configuration of the Session buffers.&nbsp; Information about the size, and number of buffers is returned for the regular sized and large sized buffers associated with the Event Session.&nbsp; An Event Session will have large sized buffers when the MAX_EVENT_SIZE configured is larger than the regular buffer size.&nbsp; In general, most Events will be buffered to the regular buffers.&nbsp; Information about event loss associated with the buffers being full and buffers that are full and pending dispatch is also contained in this DMV.\n<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n-- Look at Active Session Information\r\nSELECT \r\n   s.name, \r\n   s.pending_buffers,\r\n   s.total_regular_buffers,\r\n   s.regular_buffer_size,\r\n   s.total_large_buffers,\r\n   s.large_buffer_size,\r\n   s.total_buffer_size,\r\n   s.buffer_policy_flags,\r\n   s.buffer_policy_desc,\r\n   s.flags,\r\n   s.flag_desc,\r\n   s.dropped_event_count,\r\n   s.dropped_buffer_count,\r\n   s.blocked_event_fire_time,\r\n   s.create_time,\r\n   s.largest_event_dropped_size\r\nFROM sys.dm_xe_sessions AS s;\r\n<\/pre>\n<h3>sys.dm_xe_session_targets<\/h3>\n<p>\nThe sys.dm_xe_session_targets DMV will contain one row for each Target that exists for an active Event Session.&nbsp; Information about the Target such as the Target name (ring_buffer, pair_matching, etc.) and Target execution statistics are returned by this DMV.&nbsp; For memory resident Targets, the target_data columns will return an XML document containing the information about the Events that have been dispatched to the Target and are still available.&nbsp; For persisted Targets, the target_data column still contains an XML document, but only statistics about the Target will be contained in the document.&nbsp; More specific information about the target_data column will be provided in the next week as we look at each Target individually.&nbsp; The event_session_address column is used to join this DMV to the address column in the sys.dm_xe_sessions DMV.\n<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n-- Target information for a running session\r\nSELECT \r\n   s.name AS session_name,\r\n   t.target_name AS target_name,\r\n   t.execution_count AS execution_count,\r\n   t.execution_duration_ms AS execution_duration,\r\n   CAST(t.target_data AS XML) AS target_data\r\nFROM sys.dm_xe_sessions AS s\r\nINNER JOIN sys.dm_xe_session_targets AS t\r\n   ON s.address = t.event_session_address;\r\n<\/pre>\n<h3>sys.dm_xe_session_events<\/h3>\n<p>\nThe sys.dm_xe_session_events DMV contains one row for each Event that is defined in an Active Event Session.&nbsp; The predicate definition for each event, if defined, is included in the output of this DMV.&nbsp; However, the predicate is not the same as returned by sys.server_event_session_events if standard logical operators were used in the Event definition.&nbsp; Instead the Predicates are converted to use Predicate Comparators in text form, and for complex Predicates, the length can exceed the allowable output.&nbsp; When this occurs, &ldquo;Predicate too large for display&rdquo; will be returned by the DMV.&nbsp; The event_session_address column is used to join this DMV to the address column in the sys.dm_xe_sessions DMV.\n<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n-- Event Information for a running session\r\nSELECT s.name AS session_name,\r\n       e.event_name AS event_name,\r\n       e.event_predicate AS event_predicate\r\nFROM sys.dm_xe_sessions AS s\r\nINNER JOIN sys.dm_xe_session_events AS e\r\n     ON s.address = e.event_session_address;\r\n<\/pre>\n<h3>sys.dm_xe_session_event_actions<\/h3>\n<p>\nThe sys.dm_xe_session_event_actions DMV contains one row for each Action that is defined on an Event in an Active Event Session.&nbsp; If the same Action is defined on multiple Events in the Event Session, one row will be returned for each Event\/Action pair.&nbsp; The event_session_address and event_name columns are used to join this DMV to the address column in the sys.dm_xe_session_events DMV.\n<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n-- Event Information with Actions for a running session\r\nSELECT s.name AS session_name,\r\n       e.event_name AS event_name,\r\n       e.event_predicate AS event_predicate,\r\n       ea.action_name AS action_name\r\nFROM sys.dm_xe_sessions AS s\r\nINNER JOIN sys.dm_xe_session_events AS e\r\n     ON s.address = e.event_session_address\r\nINNER JOIN sys.dm_xe_session_event_actions AS ea\r\n     ON e.event_session_address = ea.event_session_address\r\n    AND e.event_name = ea.event_name;\r\n<\/pre>\n<h3>sys.dm_xe_session_object_columns<\/h3>\n<p>\nThe sys.dm_xe_session_object_columns DMV contains one row for each of the configured options for a Target that is defined in an Active Event Session, as well as one row for each of the customizable Data Elements for a Event that is defined in an Active Event Session.&nbsp; The event_session_address and event_name columns are used to join this DMV to the address column in the sys.dm_xe_session_events DMV.&nbsp; The event_session_address and target_name columns are used to join this DMV to the address column in the sys.dm_xe_session_targets DMV.\n<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n-- Configurable event and target column information\r\nSELECT DISTINCT s.name AS session_name, \r\n       oc.OBJECT_NAME, \r\n       oc.object_type, \r\n       oc.column_name, \r\n       oc.column_value\r\nFROM sys.dm_xe_sessions AS s\r\nINNER JOIN sys.dm_xe_session_targets AS t\r\n     ON s.address = t.event_session_address\r\nINNER JOIN sys.dm_xe_session_events AS e\r\n     ON s.address = e.event_session_address\r\nINNER JOIN sys.dm_xe_session_object_columns AS oc\r\n     ON s.address = oc.event_session_address\r\n       AND ((oc.object_type = 'target' AND t.target_name = oc.object_name) \r\n       OR (oc.object_type = 'event' AND e.event_name = oc.object_name));\r\n<\/pre>\n<h2>What&rsquo;s next?<\/h2>\n<p>\nNow that we understand how to query the Extended Events Metadata, how to manage Event Sessions, and how to determine what Event Sessions have been created in a SQL Server, the next week of this series will focus on the specific targets of Extended Events and how to query the data contained in them.&nbsp; The next post will look at the ring_buffer target and the data that it exposes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterdays post, Managing Event Sessions, showed how to manage Event Sessions inside the Extended Events framework in SQL Server. In today&#39;s post, we&rsquo;ll take a look at how to find information about the defined Event Sessions that already exist inside a SQL Server using the Session Definition DMV&rsquo;s and how to find information about the [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,38,45],"tags":[],"class_list":["post-560","post","type-post","status-publish","format-standard","hentry","category-extended-events","category-sql-server-2008","category-xevent-a-day-series"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SQL Server Extended Events DMVs | Jonathan Kehayias<\/title>\n<meta name=\"description\" content=\"Shows how to gather information about Extended Events in SQL Server 2008 using the DMVs for session definitions and active sessions in SQL Server.\" \/>\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.sqlskills.com\/blogs\/jonathan\/extended-events-dmvs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL Server Extended Events DMVs | Jonathan Kehayias\" \/>\n<meta property=\"og:description\" content=\"Shows how to gather information about Extended Events in SQL Server 2008 using the DMVs for session definitions and active sessions in SQL Server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-dmvs\/\" \/>\n<meta property=\"og:site_name\" content=\"Jonathan Kehayias\" \/>\n<meta property=\"article:published_time\" content=\"2010-12-04T22:18:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-04-13T16:17:41+00:00\" \/>\n<meta name=\"author\" content=\"Jonathan Kehayias\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jonathan Kehayias\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/extended-events-dmvs\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/extended-events-dmvs\\\/\"},\"author\":{\"name\":\"Jonathan Kehayias\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/#\\\/schema\\\/person\\\/01c10d94f3648654ef706d5e6305f69c\"},\"headline\":\"Extended Events Series (4 of 31) &#8211; Querying the Session Definition and Active Session DMV\u2019s\",\"datePublished\":\"2010-12-04T22:18:00+00:00\",\"dateModified\":\"2017-04-13T16:17:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/extended-events-dmvs\\\/\"},\"wordCount\":1924,\"commentCount\":2,\"articleSection\":[\"Extended Events\",\"SQL Server 2008\",\"XEvent a Day Series\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/extended-events-dmvs\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/extended-events-dmvs\\\/\",\"url\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/extended-events-dmvs\\\/\",\"name\":\"SQL Server Extended Events DMVs | Jonathan Kehayias\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/#website\"},\"datePublished\":\"2010-12-04T22:18:00+00:00\",\"dateModified\":\"2017-04-13T16:17:41+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/#\\\/schema\\\/person\\\/01c10d94f3648654ef706d5e6305f69c\"},\"description\":\"Shows how to gather information about Extended Events in SQL Server 2008 using the DMVs for session definitions and active sessions in SQL Server.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/extended-events-dmvs\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/extended-events-dmvs\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/extended-events-dmvs\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Extended Events\",\"item\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/category\\\/extended-events\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Extended Events Series (4 of 31) &#8211; Querying the Session Definition and Active Session DMV\u2019s\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/#website\",\"url\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/\",\"name\":\"Jonathan Kehayias - The Rambling DBA\",\"description\":\"The Rambling DBA\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/#\\\/schema\\\/person\\\/01c10d94f3648654ef706d5e6305f69c\",\"name\":\"Jonathan Kehayias\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/86630e27f5deecc5c393ea57fc7c3b6a068949f4fd6b5309f81de5a276f12855?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/86630e27f5deecc5c393ea57fc7c3b6a068949f4fd6b5309f81de5a276f12855?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/86630e27f5deecc5c393ea57fc7c3b6a068949f4fd6b5309f81de5a276f12855?s=96&d=mm&r=g\",\"caption\":\"Jonathan Kehayias\"},\"sameAs\":[\"http:\\\/\\\/3.209.169.194\\\/blogs\\\/jonathan\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQL Server Extended Events DMVs | Jonathan Kehayias","description":"Shows how to gather information about Extended Events in SQL Server 2008 using the DMVs for session definitions and active sessions in SQL Server.","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.sqlskills.com\/blogs\/jonathan\/extended-events-dmvs\/","og_locale":"en_US","og_type":"article","og_title":"SQL Server Extended Events DMVs | Jonathan Kehayias","og_description":"Shows how to gather information about Extended Events in SQL Server 2008 using the DMVs for session definitions and active sessions in SQL Server.","og_url":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-dmvs\/","og_site_name":"Jonathan Kehayias","article_published_time":"2010-12-04T22:18:00+00:00","article_modified_time":"2017-04-13T16:17:41+00:00","author":"Jonathan Kehayias","twitter_misc":{"Written by":"Jonathan Kehayias","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-dmvs\/#article","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-dmvs\/"},"author":{"name":"Jonathan Kehayias","@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/#\/schema\/person\/01c10d94f3648654ef706d5e6305f69c"},"headline":"Extended Events Series (4 of 31) &#8211; Querying the Session Definition and Active Session DMV\u2019s","datePublished":"2010-12-04T22:18:00+00:00","dateModified":"2017-04-13T16:17:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-dmvs\/"},"wordCount":1924,"commentCount":2,"articleSection":["Extended Events","SQL Server 2008","XEvent a Day Series"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-dmvs\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-dmvs\/","url":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-dmvs\/","name":"SQL Server Extended Events DMVs | Jonathan Kehayias","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/#website"},"datePublished":"2010-12-04T22:18:00+00:00","dateModified":"2017-04-13T16:17:41+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/#\/schema\/person\/01c10d94f3648654ef706d5e6305f69c"},"description":"Shows how to gather information about Extended Events in SQL Server 2008 using the DMVs for session definitions and active sessions in SQL Server.","breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-dmvs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-dmvs\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-dmvs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/"},{"@type":"ListItem","position":2,"name":"Extended Events","item":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/category\/extended-events\/"},{"@type":"ListItem","position":3,"name":"Extended Events Series (4 of 31) &#8211; Querying the Session Definition and Active Session DMV\u2019s"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/","name":"Jonathan Kehayias - The Rambling DBA","description":"The Rambling DBA","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/#\/schema\/person\/01c10d94f3648654ef706d5e6305f69c","name":"Jonathan Kehayias","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/86630e27f5deecc5c393ea57fc7c3b6a068949f4fd6b5309f81de5a276f12855?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/86630e27f5deecc5c393ea57fc7c3b6a068949f4fd6b5309f81de5a276f12855?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/86630e27f5deecc5c393ea57fc7c3b6a068949f4fd6b5309f81de5a276f12855?s=96&d=mm&r=g","caption":"Jonathan Kehayias"},"sameAs":["http:\/\/3.209.169.194\/blogs\/jonathan"]}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/posts\/560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/comments?post=560"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/posts\/560\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/media?parent=560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/categories?post=560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/tags?post=560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}