{"id":513,"date":"2011-09-21T08:00:00","date_gmt":"2011-09-21T08:00:00","guid":{"rendered":"\/blogs\/jonathan\/post\/Changes-in-Denali-Event-XML-for-XML-data-elements.aspx"},"modified":"2013-02-07T01:02:47","modified_gmt":"2013-02-07T06:02:47","slug":"extended-events-changes-in-sql-server-2012","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-changes-in-sql-server-2012\/","title":{"rendered":"Extended Events Changes in SQL Server 2012 &#8211; Event XML for XML data elements"},"content":{"rendered":"<p>\nWhile working on validating my demos for the 24 Hours of PASS and my PASS Summit 2011 Precon &ndash; Extended Events Deep Dive, I noticed a significant, and breaking change to the Event XML output for the raw event data in the ring_buffer and file_target in SQL Server Denali.&nbsp; In SQL Server 2008 and 2008R2, the Event XML represented the output of XML data elements differently than in SQL Server Denali CTP3.&nbsp; A good example of this is the xml_deadlock_report output, which I previously discussed in my SQL Server Central article,\n<\/p>\n<p>\nIn SQL Server 2008 and 2008R2, the query to retrieve the deadlock graph from the system_health session was (excluding the work around that was included in the original article since the xml_deadlock_report was fixed in a later Cumulative Update and the latest Service Pack for SQL Server 2008 and 2008 R2).\n<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nSELECT \r\n    CAST(event_data.value('(data\/value)&#x5B;1]', 'varchar(max)')) AS XML) AS DeadlockGraph \r\nFROM \r\n(   SELECT XEvent.query('.') AS event_data \r\n    FROM \r\n    (   -- Cast the target_data to XML \r\n        SELECT CAST(target_data AS XML) AS TargetData \r\n        FROM sys.dm_xe_session_targets AS st \r\n        INNER JOIN sys.dm_xe_sessions AS s \r\n            ON s.address = st.event_session_address \r\n        WHERE name = N'system_health' \r\n          AND target_name = N'ring_buffer' \r\n    ) AS Data \r\n    -- Split out the Event Nodes \r\n    CROSS APPLY TargetData.nodes ('RingBufferTarget\/event&#x5B;@name=&quot;xml_deadlock_report&quot;]') AS XEventData (XEvent)   \r\n) AS tab (event_data);\r\n<\/pre>\n<p>\nIf you run this same code in SQL Server Denali CTP3, the output will not be the xml_deadlock_report but instead the textual data that was included in the sub-nodes of the value node for the xml_deadlock_report events in the target.&nbsp; This unfortunately has broken a number of my scripts that were initially written for SQL Server 2008 and 2008R2 that expect the XML output as text in the value element as follows:\n<\/p>\n<pre class=\"brush: xml; gutter: false; title: ; notranslate\" title=\"\">\r\n&lt;event name=&quot;xml_deadlock_report&quot; package=&quot;sqlserver&quot; id=&quot;123&quot; version=&quot;1&quot; timestamp=&quot;2011-09-15T23:29:02.851Z&quot;&gt; \r\n  &lt;data name=&quot;xml_report&quot;&gt; \r\n    &lt;type name=&quot;unicode_string&quot; package=&quot;package0&quot; \/&gt; \r\n    &lt;value&gt;&amp;lt;deadlock-list&amp;gt; \r\n&amp;lt;victim-list&amp;gt; \r\n  &amp;lt;victimProcess id=&quot;process806e2088&quot;\/&amp;gt; \r\n  &amp;lt;process-list&amp;gt; \r\n   &amp;lt;process id=&quot;process806e2088&quot; taskpriority=&quot;0&quot; logused=&quot;10000&quot; waitresource=&quot;DATABASE: 15 &quot; waittime=&quot;1477&quot; schedulerid=&quot;2&quot; kpid=&quot;3720&quot; status=&quot;suspended&quot; spid=&quot;57&quot; sbid=&quot;0&quot; ecid=&quot;0&quot; priority=&quot;0&quot; trancount=&quot;1&quot; lastbatchstarted=&quot;2011-09-15T19:29:01.370&quot; lastbatchcompleted=&quot;2011-09-15T19:27:21.193&quot; clientapp=&quot;Microsoft SQL Server Management Studio \u2013 Query&quot; hostname=&quot;SQL2K8R2-IE2&quot; hostpid=&quot;4464&quot; loginname=&quot;SQLSKILLSDEMOS\\administrator&quot; isolationlevel=&quot;read committed (2)&quot; xactid=&quot;68641&quot; currentdb=&quot;15&quot; lockTimeout=&quot;4294967295&quot; clientoption1=&quot;671090784&quot; clientoption2=&quot;390200&quot;&amp;gt; \r\n    &amp;lt;executionStack&amp;gt; \r\n     &amp;lt;frame procname=&quot;&quot; line=&quot;1&quot; sqlhandle=&quot;0x01000100721ac42240ff1285000000000000000000000000&quot;&amp;gt; \r\n     &amp;lt;\/frame&amp;gt; \r\n    &amp;lt;\/executionStack&amp;gt; \r\n    &amp;lt;inputbuf&amp;gt; \r\nALTER DATABASE DemoNCIndex SET MULTI_USER \r\n    &amp;lt;\/inputbuf&amp;gt; \r\n   &amp;lt;\/process&amp;gt; \r\n   &amp;lt;process id=&quot;process469b88&quot; taskpriority=&quot;0&quot; logused=&quot;10000&quot; waitresource=&quot;DATABASE: 15 &quot; waittime=&quot;1892&quot; schedulerid=&quot;2&quot; kpid=&quot;4188&quot; status=&quot;suspended&quot; spid=&quot;58&quot; sbid=&quot;0&quot; ecid=&quot;0&quot; priority=&quot;0&quot; trancount=&quot;0&quot; lastbatchstarted=&quot;2011-09-15T19:29:00.957&quot; lastbatchcompleted=&quot;2011-09-15T19:29:00.947&quot; clientapp=&quot;Microsoft SQL Server Management Studio \u2013 Transact-SQL IntelliSense&quot; hostname=&quot;SQL2K8R2-IE2&quot; hostpid=&quot;4464&quot; loginname=&quot;SQLSKILLSDEMOS\\administrator&quot; isolationlevel=&quot;read committed (2)&quot; xactid=&quot;68638&quot; currentdb=&quot;15&quot; lockTimeout=&quot;4294967295&quot; clientoption1=&quot;671088672&quot; clientoption2=&quot;128056&quot;&amp;gt; \r\n    &amp;lt;executionStack&amp;gt; \r\n     &amp;lt;frame procname=&quot;&quot; line=&quot;1&quot; sqlhandle=&quot;0x010001008af5b714605a1f85000000000000000000000000&quot;&amp;gt; \r\n     &amp;lt;\/frame&amp;gt; \r\n    &amp;lt;\/executionStack&amp;gt; \r\n    &amp;lt;inputbuf&amp;gt; \r\nuse &#x5B;DemoNCIndex]    &amp;lt;\/inputbuf&amp;gt; \r\n   &amp;lt;\/process&amp;gt; \r\n  &amp;lt;\/process-list&amp;gt; \r\n  &amp;lt;resource-list&amp;gt; \r\n   &amp;lt;databaselock subresource=&quot;FULL&quot; dbid=&quot;15&quot; dbname=&quot;&quot; id=&quot;lock83168d80&quot; mode=&quot;S&quot;&amp;gt; \r\n    &amp;lt;owner-list&amp;gt; \r\n     &amp;lt;owner id=&quot;process469b88&quot; mode=&quot;S&quot;\/&amp;gt; \r\n    &amp;lt;\/owner-list&amp;gt; \r\n    &amp;lt;waiter-list&amp;gt; \r\n     &amp;lt;waiter id=&quot;process806e2088&quot; mode=&quot;X&quot; requestType=&quot;wait&quot;\/&amp;gt; \r\n    &amp;lt;\/waiter-list&amp;gt; \r\n   &amp;lt;\/databaselock&amp;gt; \r\n   &amp;lt;databaselock subresource=&quot;FULL&quot; dbid=&quot;15&quot; dbname=&quot;&quot; id=&quot;lock83168d80&quot; mode=&quot;S&quot;&amp;gt; \r\n    &amp;lt;owner-list&amp;gt; \r\n     &amp;lt;owner id=&quot;process806e2088&quot; mode=&quot;S&quot;\/&amp;gt; \r\n     &amp;lt;owner id=&quot;process806e2088&quot; mode=&quot;S&quot;\/&amp;gt; \r\n    &amp;lt;\/owner-list&amp;gt; \r\n    &amp;lt;waiter-list&amp;gt; \r\n     &amp;lt;waiter id=&quot;process469b88&quot; mode=&quot;X&quot; requestType=&quot;wait&quot;\/&amp;gt; \r\n    &amp;lt;\/waiter-list&amp;gt; \r\n   &amp;lt;\/databaselock&amp;gt; \r\n  &amp;lt;\/resource-list&amp;gt; \r\n&amp;lt;\/deadlock&amp;gt; \r\n&amp;lt;\/deadlock-list&amp;gt; \r\n&lt;\/value&gt; \r\n    &lt;text \/&gt; \r\n  &lt;\/data&gt; \r\n&lt;\/event&gt;\r\n<\/pre>\n<p>\nInstead in SQL Server Denali CTP3, the event output is as follows:\n<\/p>\n<pre class=\"brush: xml; gutter: false; title: ; notranslate\" title=\"\">\r\n&lt;event name=&quot;xml_deadlock_report&quot; package=&quot;sqlserver&quot; timestamp=&quot;2011-09-17T18:49:03.654Z&quot;&gt; \r\n  &lt;data name=&quot;xml_report&quot;&gt; \r\n    &lt;type name=&quot;xml&quot; package=&quot;package0&quot; \/&gt; \r\n    &lt;value&gt; \r\n      &lt;deadlock&gt; \r\n        &lt;victim-list&gt; \r\n          &lt;victimProcess id=&quot;processf7034a18&quot; \/&gt; \r\n        &lt;\/victim-list&gt; \r\n        &lt;process-list&gt; \r\n          &lt;process id=&quot;processf7034a18&quot; taskpriority=&quot;0&quot; logused=&quot;144&quot; waitresource=&quot;RID: 2:1:281:0&quot; waittime=&quot;2394&quot; ownerId=&quot;162349&quot; transactionname=&quot;user_transaction&quot; lasttranstarted=&quot;2011-09-17T11:48:48.410&quot; XDES=&quot;0xff047120&quot; lockMode=&quot;S&quot; schedulerid=&quot;2&quot; kpid=&quot;692&quot; status=&quot;suspended&quot; spid=&quot;58&quot; sbid=&quot;0&quot; ecid=&quot;0&quot; priority=&quot;0&quot; trancount=&quot;1&quot; lastbatchstarted=&quot;2011-09-17T11:49:01.247&quot; lastbatchcompleted=&quot;2011-09-17T11:48:48.410&quot; lastattention=&quot;2011-09-17T11:39:47.393&quot; clientapp=&quot;Microsoft SQL Server Management Studio \u2013 Query&quot; hostname=&quot;WIN-QSTGAPD63IN&quot; hostpid=&quot;3004&quot; loginname=&quot;WIN-QSTGAPD63IN\\Administrator&quot; isolationlevel=&quot;read committed (2)&quot; xactid=&quot;162349&quot; currentdb=&quot;2&quot; lockTimeout=&quot;4294967295&quot; clientoption1=&quot;671090784&quot; clientoption2=&quot;390200&quot;&gt; \r\n            &lt;executionStack&gt; \r\n              &lt;frame procname=&quot;adhoc&quot; line=&quot;1&quot; sqlhandle=&quot;0x02000000303b01237c6994b4eab30fb77cbb5a8e46f2b2540000000000000000000000000000000000000000&quot;&gt; \r\nSELECT Column2 \r\nFROM TableB    &lt;\/frame&gt; \r\n            &lt;\/executionStack&gt; \r\n            &lt;inputbuf&gt; \r\nSELECT Column2 \r\nFROM TableB   &lt;\/inputbuf&gt; \r\n          &lt;\/process&gt; \r\n          &lt;process id=&quot;processf7035168&quot; taskpriority=&quot;0&quot; logused=&quot;144&quot; waitresource=&quot;RID: 2:1:271:0&quot; waittime=&quot;7494&quot; ownerId=&quot;162369&quot; transactionname=&quot;user_transaction&quot; lasttranstarted=&quot;2011-09-17T11:48:53.693&quot; XDES=&quot;0xf7044dd0&quot; lockMode=&quot;S&quot; schedulerid=&quot;2&quot; kpid=&quot;3244&quot; status=&quot;suspended&quot; spid=&quot;60&quot; sbid=&quot;0&quot; ecid=&quot;0&quot; priority=&quot;0&quot; trancount=&quot;1&quot; lastbatchstarted=&quot;2011-09-17T11:48:56.150&quot; lastbatchcompleted=&quot;2011-09-17T11:48:53.693&quot; lastattention=&quot;1900-01-01T00:00:00.693&quot; clientapp=&quot;Microsoft SQL Server Management Studio \u2013 Query&quot; hostname=&quot;WIN-QSTGAPD63IN&quot; hostpid=&quot;3004&quot; loginname=&quot;WIN-QSTGAPD63IN\\Administrator&quot; isolationlevel=&quot;read committed (2)&quot; xactid=&quot;162369&quot; currentdb=&quot;2&quot; lockTimeout=&quot;4294967295&quot; clientoption1=&quot;671090784&quot; clientoption2=&quot;390200&quot;&gt; \r\n            &lt;executionStack&gt; \r\n              &lt;frame procname=&quot;adhoc&quot; line=&quot;2&quot; stmtstart=&quot;4&quot; sqlhandle=&quot;0x020000002e8952007a6c36a78a2aa436877a27f57a0725c80000000000000000000000000000000000000000&quot;&gt; \r\nSELECT Column1 \r\nFROM TableA    &lt;\/frame&gt; \r\n            &lt;\/executionStack&gt; \r\n            &lt;inputbuf&gt;\r\n\r\nSELECT Column1 \r\nFROM TableA   &lt;\/inputbuf&gt; \r\n          &lt;\/process&gt; \r\n        &lt;\/process-list&gt; \r\n        &lt;resource-list&gt; \r\n          &lt;ridlock fileid=&quot;1&quot; pageid=&quot;281&quot; dbid=&quot;2&quot; objectname=&quot;tempdb.dbo.TABLEB&quot; id=&quot;lockf7d4ff80&quot; mode=&quot;X&quot; associatedObjectId=&quot;2161727822326792192&quot;&gt; \r\n            &lt;owner-list&gt; \r\n              &lt;owner id=&quot;processf7035168&quot; mode=&quot;X&quot; \/&gt; \r\n            &lt;\/owner-list&gt; \r\n            &lt;waiter-list&gt; \r\n              &lt;waiter id=&quot;processf7034a18&quot; mode=&quot;S&quot; requestType=&quot;wait&quot; \/&gt; \r\n            &lt;\/waiter-list&gt; \r\n          &lt;\/ridlock&gt; \r\n          &lt;ridlock fileid=&quot;1&quot; pageid=&quot;271&quot; dbid=&quot;2&quot; objectname=&quot;tempdb.dbo.TABLEA&quot; id=&quot;lockf7d51380&quot; mode=&quot;X&quot; associatedObjectId=&quot;2089670228247904256&quot;&gt; \r\n            &lt;owner-list&gt; \r\n              &lt;owner id=&quot;processf7034a18&quot; mode=&quot;X&quot; \/&gt; \r\n            &lt;\/owner-list&gt; \r\n            &lt;waiter-list&gt; \r\n              &lt;waiter id=&quot;processf7035168&quot; mode=&quot;S&quot; requestType=&quot;wait&quot; \/&gt; \r\n            &lt;\/waiter-list&gt; \r\n          &lt;\/ridlock&gt; \r\n        &lt;\/resource-list&gt; \r\n      &lt;\/deadlock&gt; \r\n    &lt;\/value&gt; \r\n  &lt;\/data&gt; \r\n&lt;\/event&gt;\r\n<\/pre>\n<p>\nIf you compare the two bold sections to each other you will notice the difference.&nbsp; In SQL Server 2008 and 2008R2, the value element is XML escaped entirely as text, but in SQL Server Denali CTP3, the value attribute contains a valid XML document as a child node in the XML itself.&nbsp; This has a significant impact to how you actually access the XML data in Denali CTP3.&nbsp; To read the XML Document, you have to switch from using the .value() XML function along with a CAST() operation to using a .query() operation on the Event XML specifying the deadlock node as a part of the .query() XPATH for it as shown in the following code example:\n<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nSELECT \r\n    event_data.query('(event\/data\/value\/deadlock)&#x5B;1]') AS DeadlockGraph \r\nFROM \r\n(   SELECT XEvent.query('.') AS event_data \r\n    FROM \r\n    (   -- Cast the target_data to XML \r\n        SELECT CAST(target_data AS XML) AS TargetData \r\n        FROM sys.dm_xe_session_targets AS st \r\n        INNER JOIN sys.dm_xe_sessions AS s \r\n            ON s.address = st.event_session_address \r\n        WHERE name = N'system_health' \r\n          AND target_name = N'ring_buffer' \r\n    ) AS Data \r\n    -- Split out the Event Nodes \r\n    CROSS APPLY TargetData.nodes ('RingBufferTarget\/event&#x5B;@name=&quot;xml_deadlock_report&quot;]') AS XEventData (XEvent)   \r\n) AS tab (event_data);\r\n<\/pre>\n<p>\nThis same thing applies to all of the XML data elements including the sqlserver.tsql_stack and sqlserver.tsql_frame Actions.&nbsp; In addition other actions such as the sqlserver.plan_handle have similar changes that require changing the code to process the Event XML to capture the values being output.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While working on validating my demos for the 24 Hours of PASS and my PASS Summit 2011 Precon &ndash; Extended Events Deep Dive, I noticed a significant, and breaking change to the Event XML output for the raw event data in the ring_buffer and file_target in SQL Server Denali.&nbsp; In SQL Server 2008 and 2008R2, [&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,40],"tags":[],"class_list":["post-513","post","type-post","status-publish","format-standard","hentry","category-extended-events","category-sql-server-2008","category-sql-server-denali"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Extended Events Changes in SQL Server 2012 | Jonathan Kehayias<\/title>\n<meta name=\"description\" content=\"Shows the changes in the Extended Events output in SQL Server 2012 for XML column elements on events using the xml_deadlock_report event as an example.\" \/>\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-changes-in-sql-server-2012\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Extended Events Changes in SQL Server 2012 | Jonathan Kehayias\" \/>\n<meta property=\"og:description\" content=\"Shows the changes in the Extended Events output in SQL Server 2012 for XML column elements on events using the xml_deadlock_report event as an example.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-changes-in-sql-server-2012\/\" \/>\n<meta property=\"og:site_name\" content=\"Jonathan Kehayias\" \/>\n<meta property=\"article:published_time\" content=\"2011-09-21T08:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-02-07T06:02:47+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=\"9 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-changes-in-sql-server-2012\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/extended-events-changes-in-sql-server-2012\\\/\"},\"author\":{\"name\":\"Jonathan Kehayias\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/#\\\/schema\\\/person\\\/01c10d94f3648654ef706d5e6305f69c\"},\"headline\":\"Extended Events Changes in SQL Server 2012 &#8211; Event XML for XML data elements\",\"datePublished\":\"2011-09-21T08:00:00+00:00\",\"dateModified\":\"2013-02-07T06:02:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/extended-events-changes-in-sql-server-2012\\\/\"},\"wordCount\":1816,\"commentCount\":0,\"articleSection\":[\"Extended Events\",\"SQL Server 2008\",\"SQL Server Denali\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/extended-events-changes-in-sql-server-2012\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/extended-events-changes-in-sql-server-2012\\\/\",\"url\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/extended-events-changes-in-sql-server-2012\\\/\",\"name\":\"Extended Events Changes in SQL Server 2012 | Jonathan Kehayias\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/#website\"},\"datePublished\":\"2011-09-21T08:00:00+00:00\",\"dateModified\":\"2013-02-07T06:02:47+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/#\\\/schema\\\/person\\\/01c10d94f3648654ef706d5e6305f69c\"},\"description\":\"Shows the changes in the Extended Events output in SQL Server 2012 for XML column elements on events using the xml_deadlock_report event as an example.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/extended-events-changes-in-sql-server-2012\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/extended-events-changes-in-sql-server-2012\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/extended-events-changes-in-sql-server-2012\\\/#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 Changes in SQL Server 2012 &#8211; Event XML for XML data elements\"}]},{\"@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":"Extended Events Changes in SQL Server 2012 | Jonathan Kehayias","description":"Shows the changes in the Extended Events output in SQL Server 2012 for XML column elements on events using the xml_deadlock_report event as an example.","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-changes-in-sql-server-2012\/","og_locale":"en_US","og_type":"article","og_title":"Extended Events Changes in SQL Server 2012 | Jonathan Kehayias","og_description":"Shows the changes in the Extended Events output in SQL Server 2012 for XML column elements on events using the xml_deadlock_report event as an example.","og_url":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-changes-in-sql-server-2012\/","og_site_name":"Jonathan Kehayias","article_published_time":"2011-09-21T08:00:00+00:00","article_modified_time":"2013-02-07T06:02:47+00:00","author":"Jonathan Kehayias","twitter_misc":{"Written by":"Jonathan Kehayias","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-changes-in-sql-server-2012\/#article","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-changes-in-sql-server-2012\/"},"author":{"name":"Jonathan Kehayias","@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/#\/schema\/person\/01c10d94f3648654ef706d5e6305f69c"},"headline":"Extended Events Changes in SQL Server 2012 &#8211; Event XML for XML data elements","datePublished":"2011-09-21T08:00:00+00:00","dateModified":"2013-02-07T06:02:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-changes-in-sql-server-2012\/"},"wordCount":1816,"commentCount":0,"articleSection":["Extended Events","SQL Server 2008","SQL Server Denali"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-changes-in-sql-server-2012\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-changes-in-sql-server-2012\/","url":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-changes-in-sql-server-2012\/","name":"Extended Events Changes in SQL Server 2012 | Jonathan Kehayias","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/#website"},"datePublished":"2011-09-21T08:00:00+00:00","dateModified":"2013-02-07T06:02:47+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/#\/schema\/person\/01c10d94f3648654ef706d5e6305f69c"},"description":"Shows the changes in the Extended Events output in SQL Server 2012 for XML column elements on events using the xml_deadlock_report event as an example.","breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-changes-in-sql-server-2012\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-changes-in-sql-server-2012\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/extended-events-changes-in-sql-server-2012\/#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 Changes in SQL Server 2012 &#8211; Event XML for XML data elements"}]},{"@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\/513","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=513"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/posts\/513\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/media?parent=513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/categories?post=513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/tags?post=513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}