{"id":1893,"date":"2023-11-01T07:00:00","date_gmt":"2023-11-01T04:00:00","guid":{"rendered":"https:\/\/www.dataplatform.gr\/?p=1893"},"modified":"2024-10-14T12:45:40","modified_gmt":"2024-10-14T09:45:40","slug":"pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia","status":"publish","type":"post","link":"https:\/\/www.dataplatform.gr\/en\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\/","title":{"rendered":"How we collect deadlocked queries via Extended Event and how we read its data"},"content":{"rendered":"<p>In&nbsp;<a href=\"https:\/\/www.dataplatform.gr\/en\/pos-syllegoyme-queries-me-megali-diarkeia-me\/\" target=\"_blank\" rel=\"noreferrer noopener\">older article<\/a>&nbsp;we had seen how we create&nbsp;<strong>Extended Event&nbsp;<\/strong>to see long-running queries. In this article we will build Extended Event that records the&nbsp;<strong>deadlocks<\/strong>.<\/p>\n\n\n\n<p>All we need to do is create it with a T-SQL command. After it is created, it will record in the path that we have declared to it in an XML file all the queries that lasted more than 1 second. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">To create the Extended Event<\/h4>\n\n\n\n<p>We must not forget to change the path to the one where we want the data to be stored.<\/p>\n\n\n\n<p>Then we execute it in a simple query window.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\" data-no-translation=\"\" data-no-auto-translation=\"\">CREATE EVENT SESSION [deadLock] ON SERVER \nADD EVENT sqlserver.xml_deadlock_report(\nACTION(package0.callstack,package0.collect_cpu_cycle_time,package0.collect_current_thread_id,package0.collect_system_time,package0.event_sequence,package0.last_error,package0.process_id,sqlos.cpu_id,sqlos.scheduler_id,sqlserver.client_app_name,sqlserver.client_connection_id,sqlserver.client_hostname,sqlserver.client_pid,sqlserver.context_info,sqlserver.database_id,sqlserver.database_name,sqlserver.is_system,sqlserver.query_plan_hash,sqlserver.server_instance_name,sqlserver.server_principal_name,sqlserver.server_principal_sid,sqlserver.session_id,sqlserver.session_nt_username,sqlserver.session_server_principal_name,sqlserver.sql_text,sqlserver.transaction_id,sqlserver.tsql_frame,sqlserver.username)) \nADD TARGET package0.event_file(SET filename=N'D:\\xevents\\deadlock.xel',max_file_size=(5))\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)\nGO\n\nalter event session deadLock on server state=start;\ngo<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">How do we read the results?<\/h4>\n\n\n\n<p>In the path we defined during its creation&nbsp;<strong>XEvent&nbsp;<\/strong>a .xel and a .xem file were created. Through the dynamic view&nbsp;<strong>sys.fn_xe_file_target_read_file<\/strong>&nbsp;with parameters these files we result in all the&nbsp;<strong>XML&nbsp;<\/strong>file with the information.<\/p>\n\n\n\n<p>But since it is impractical to read an XML by eye, the file must somehow be filtered into a more readable form.<\/p>\n\n\n\n<p>So I sat down and made a query that does this job<\/p>\n\n\n\n<p>For starters, through the name we created, Xevent finds the path that is dynamically located and defines it as a parameter in the query.<\/p>\n\n\n\n<p>Then we define the XML as one&nbsp;<strong>Common Table Expression<\/strong>. By doing SELECT we can get the value from each property we need.<\/p>\n\n\n\n<p>In the where statement we can filter specific bases, the duration and the period of time it was executed.<\/p>\n\n\n\n<p>This part needs attention, as the default xml timestamp is in UTC timezone, so to put the actual time that the server has, we add the time difference that the server has with the UTC timezone (<em>DATEADD(HOUR,DATEDIFF(hour, SYSUTCDATETIME(),SYSDATETIME() )<\/em>).<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\" data-no-translation=\"\" data-no-auto-translation=\"\">declare\n\n@xel as varchar(max),\n@xem as varchar(max) \n\nset @xel=(select \n--n.name as XeventName,\nSUBSTRING(cast(f.value as varchar(max)),1,len(cast(f.value as varchar(max)))-4)+'*.xel' as xel\n--,SUBSTRING(cast(f.value as varchar(max)),1,len(cast(f.value as varchar(max)))-4)+'*.xem' as xem\nfrom sys.server_event_session_fields f\ninner join sys.server_event_sessions n on f.event_session_id = n.event_session_id\nWHERE f.NAME = 'filename' \nand n.name like '%deadLock%') --Set xevent Name\n\n\nset @xem=(select \n--n.name as XeventName,\n--SUBSTRING(cast(f.value as varchar(max)),1,len(cast(f.value as varchar(max)))-4)+'*.xel' as xel\nSUBSTRING(cast(f.value as varchar(max)),1,len(cast(f.value as varchar(max)))-4)+'*.xem' as xem\nfrom sys.server_event_session_fields f\ninner join sys.server_event_sessions n on f.event_session_id = n.event_session_id\nWHERE f.NAME = 'filename' \nand n.name like '%deadLock%')  --Set xevent Name\n\n;WITH XEvents AS\n(\nselect object_name, CAST(event_data AS XML) AS A FROM sys.fn_xe_file_target_read_file(\n@xel\n,@xem\n, NULL, NULL)\n)\nSELECT \n--object_name AS EventName,\nA.value ('(\/event\/action[@name=''database_name'']\/value)[1]', 'VARCHAR(MAX)') AS DB_Name,\nDATEADD(HOUR,DATEDIFF(hour,  SYSUTCDATETIME(),SYSDATETIME() ),A.value ('(\/event\/@timestamp)[1]', 'DATETIME')) AS [Time],\n--A.value ('(\/event\/data\/value\/deadlock\/resource-list\/objectlock\/@dbid)[1]',  'VARCHAR(MAX)') AS dbid,\nd.name as DB_Name,\n\nA.value ('(\/event\/data\/value\/deadlock\/resource-list\/objectlock\/@objectname)[1]',  'VARCHAR(MAX)') AS locked_objectname,\nA.value ('(\/event\/data[@name=''xml_report'']\/value)[1]',  'VARCHAR(MAX)') AS All_Queries,\nA.value ('(\/event\/data\/value\/deadlock\/victim-list\/victimProcess\/@id)[1]',  'VARCHAR(MAX)') AS VictimProcess1,\nA.value ('(\/event\/data\/value\/deadlock\/victim-list\/victimProcess\/@id)[2]',  'VARCHAR(MAX)') AS VictimProcess2,\nA.value ('(\/event\/data\/value\/deadlock\/victim-list\/victimProcess\/@id)[3]',  'VARCHAR(MAX)') AS VictimProcess3,\nA.value ('(\/event\/data\/value\/deadlock\/victim-list\/victimProcess\/@id)[4]',  'VARCHAR(MAX)') AS VictimProcess4,\nA.value ('(\/event\/data\/value\/deadlock\/victim-list\/victimProcess\/@id)[5]',  'VARCHAR(MAX)') AS VictimProcess5,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@id)[1]',  'VARCHAR(MAX)') AS ListProcess1,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/inputbuf)[1]',  'VARCHAR(MAX)') AS ListQuery1,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@hostname)[1]',  'VARCHAR(MAX)') AS hostname1,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@currentdbname)[1]',  'VARCHAR(MAX)') AS Currentdbname1,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@loginname)[1]',  'VARCHAR(MAX)') AS Loginname1,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@lockMode)[1]',  'VARCHAR(MAX)') AS lockMode1,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@isolationlevel)[1]',  'VARCHAR(MAX)') AS isolationlevel1,\n\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/executionStack\/frame\/@sqlhandle)[1]',  'VARCHAR(MAX)') AS sql_handle1,\nsf1.text as full_text1,\nqp1.query_plan as query_plan1,\n\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@id)[2]',  'VARCHAR(MAX)') AS ListProcess2,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/inputbuf)[2]',  'VARCHAR(MAX)') AS ListQuery2,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@hostname)[2]',  'VARCHAR(MAX)') AS hostname2,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@currentdbname)[2]',  'VARCHAR(MAX)') AS Currentdbname2,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@loginname)[2]',  'VARCHAR(MAX)') AS Loginname2,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@isolationlevel)[2]',  'VARCHAR(MAX)') AS isolationlevel12,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@lockMode)[2]',  'VARCHAR(MAX)') AS lockMode2,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process[2]\/executionStack\/frame\/@sqlhandle)[1]',  'VARCHAR(MAX)') AS sql_handle2,\nsf2.text as full_text2,\nqp2.query_plan as query_plan2,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@id)[3]',  'VARCHAR(MAX)') AS ListProcess3,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/inputbuf)[3]',  'VARCHAR(MAX)') AS ListQuery3,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@lockMode)[3]',  'VARCHAR(MAX)') AS lockMode3,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@hostname)[3]',  'VARCHAR(MAX)') AS hostname3,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@currentdbname)[3]',  'VARCHAR(MAX)') AS Currentdbname3,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@loginname)[3]',  'VARCHAR(MAX)') AS Loginname3,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@isolationlevel)[3]',  'VARCHAR(MAX)') AS isolationlevel3,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process[3]\/executionStack\/frame\/@sqlhandle)[1]',  'VARCHAR(MAX)') AS sql_handle3,\nsf3.text as full_text3,\nqp3.query_plan as query_plan3,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@id)[4]',  'VARCHAR(MAX)') AS ListProcess4,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/inputbuf)[4]',  'VARCHAR(MAX)') AS ListQuery4,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@lockMode)[4]',  'VARCHAR(MAX)') AS lockMode4,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@hostname)[4]',  'VARCHAR(MAX)') AS hostname4,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@currentdbname)[4]',  'VARCHAR(MAX)') AS Currentdbname4,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@loginname)[4]',  'VARCHAR(MAX)') AS Loginname4,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@isolationlevel)[4]',  'VARCHAR(MAX)') AS isolationlevel4,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process[4]\/executionStack\/frame\/@sqlhandle)[1]',  'VARCHAR(MAX)') AS sql_handle4,\nsf4.text as full_text4,\nqp4.query_plan as query_plan4,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@id)[5]',  'VARCHAR(MAX)') AS ListProcess5,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/inputbuf)[5]',  'VARCHAR(MAX)') AS ListQuery5,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@lockMode)[5]',  'VARCHAR(MAX)') AS lockMode5,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@hostname)[5]',  'VARCHAR(MAX)') AS hostname5,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@loginname)[5]',  'VARCHAR(MAX)') AS Loginname5,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@isolationlevel)[5]',  'VARCHAR(MAX)') AS isolationlevel5,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process[5]\/executionStack\/frame\/@sqlhandle)[1]',  'VARCHAR(MAX)') AS sql_handle5,\nsf5.text as full_text5,\nqp5.query_plan as query_plan5,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@id)[6]',  'VARCHAR(MAX)') AS ListProcess6,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/inputbuf)[6]',  'VARCHAR(MAX)') AS ListQuery6,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@lockMode)[6]',  'VARCHAR(MAX)') AS lockMode6,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@hostname)[6]',  'VARCHAR(MAX)') AS hostname6,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@loginname)[6]',  'VARCHAR(MAX)') AS Loginname6,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@currentdbname)[6]',  'VARCHAR(MAX)') AS Currentdbname6,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@isolationlevel)[6]',  'VARCHAR(MAX)') AS isolationlevel6,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process[6]\/executionStack\/frame\/@sqlhandle)[1]',  'VARCHAR(MAX)') AS sql_handle6,\nsf6.text as full_text6,\nqp6.query_plan as query_plan6,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@id)[7]',  'VARCHAR(MAX)') AS ListProcess7,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/inputbuf)[7]',  'VARCHAR(MAX)') AS ListQuery7,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@lockMode)[7]',  'VARCHAR(MAX)') AS lockMode7,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@hostname)[7]',  'VARCHAR(MAX)') AS hostname7,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@loginname)[7]',  'VARCHAR(MAX)') AS Loginname7,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@currentdbname)[7]',  'VARCHAR(MAX)') AS Currentdbname7,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/@isolationlevel)[7]',  'VARCHAR(MAX)') AS isolationlevel7,\nA.value ('(\/event\/data\/value\/deadlock\/process-list\/process[7]\/executionStack\/frame\/@sqlhandle)[1]',  'VARCHAR(MAX)') AS sql_handle7,\nsf7.text as full_text7,\nqp7.query_plan as query_plan7,\nA   AS xml_report\n--,SUBSTRING(CAST(A as varchar(max)), CHARINDEX('&lt;inputbuf>', CAST(A as varchar(max))), CHARINDEX('&lt;\/inputbuf>',CAST(A as varchar(max))) - CHARINDEX('&lt;inputbuf>', CAST(A as varchar(max))) + Len('&lt;\/inputbuf>')) as VictimQuery,\n--SUBSTRING(CAST(A as varchar(max)), CHARINDEX('&lt;inputbuf>',CAST(A as varchar(max)),CHARINDEX('&lt;inputbuf>',CAST(A as varchar(max)))+10), CHARINDEX('&lt;\/inputbuf>',CAST(A as varchar(max)),CHARINDEX('&lt;\/inputbuf>',CAST(A as varchar(max)))+10) - CHARINDEX('&lt;inputbuf>',CAST(A as varchar(max)),CHARINDEX('&lt;inputbuf>',CAST(A as varchar(max)))+1) + Len('&lt;\/inputbuf>')) as TheOtherQuery\nFrom XEvents x\nleft join sys.databases d on x.A.value ('(\/event\/data\/value\/deadlock\/resource-list\/objectlock\/@dbid)[1]',  'VARCHAR(MAX)') =d.database_id\n--left join  sys.dm_exec_query_stats qs1 on  qs1.sql_handle = CONVERT(VARBINARY(MAX), x.A.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/executionStack\/frame\/@sqlhandle)[1]',  'varchar(max)'), 1) \nouter apply sys.dm_exec_sql_text (CONVERT(VARBINARY(MAX), x.A.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/executionStack\/frame\/@sqlhandle)[1]',  'varchar(max)'), 1)) as sf1\nouter apply sys.dm_exec_query_plan((select top 1 plan_handle from sys.dm_exec_query_stats where sql_handle = CONVERT(VARBINARY(MAX), x.A.value ('(\/event\/data\/value\/deadlock\/process-list\/process\/executionStack\/frame\/@sqlhandle)[1]',  'varchar(max)'), 1)order by last_execution_time desc))as qp1\n\nouter apply sys.dm_exec_sql_text (CONVERT(VARBINARY(MAX), x.A.value ('(\/event\/data\/value\/deadlock\/process-list\/process[2]\/executionStack\/frame\/@sqlhandle)[1]',  'varchar(max)'), 1)) as sf2\nouter apply sys.dm_exec_query_plan((select top 1 plan_handle from sys.dm_exec_query_stats where sql_handle = CONVERT(VARBINARY(MAX), x.A.value ('(\/event\/data\/value\/deadlock\/process-list\/process[2]\/executionStack\/frame\/@sqlhandle)[1]',  'varchar(max)'), 1)order by last_execution_time desc))as qp2\n\nouter apply sys.dm_exec_sql_text (CONVERT(VARBINARY(MAX), x.A.value ('(\/event\/data\/value\/deadlock\/process-list\/process[3]\/executionStack\/frame\/@sqlhandle)[1]',  'varchar(max)'), 1)) as sf3\nouter apply sys.dm_exec_query_plan((select top 1 plan_handle from sys.dm_exec_query_stats where sql_handle = CONVERT(VARBINARY(MAX), x.A.value ('(\/event\/data\/value\/deadlock\/process-list\/process[3]\/executionStack\/frame\/@sqlhandle)[1]',  'varchar(max)'), 1)order by last_execution_time desc))as qp3\n\nouter apply sys.dm_exec_sql_text (CONVERT(VARBINARY(MAX), x.A.value ('(\/event\/data\/value\/deadlock\/process-list\/process[4]\/executionStack\/frame\/@sqlhandle)[1]',  'varchar(max)'), 1)) as sf4\nouter apply sys.dm_exec_query_plan((select top 1 plan_handle from sys.dm_exec_query_stats where sql_handle = CONVERT(VARBINARY(MAX), x.A.value ('(\/event\/data\/value\/deadlock\/process-list\/process[4]\/executionStack\/frame\/@sqlhandle)[1]',  'varchar(max)'), 1)order by last_execution_time desc))as qp4\n\nouter apply sys.dm_exec_sql_text (CONVERT(VARBINARY(MAX), x.A.value ('(\/event\/data\/value\/deadlock\/process-list\/process[5]\/executionStack\/frame\/@sqlhandle)[1]',  'varchar(max)'), 1)) as sf5\nouter apply sys.dm_exec_query_plan((select top 1 plan_handle from sys.dm_exec_query_stats where sql_handle = CONVERT(VARBINARY(MAX), x.A.value ('(\/event\/data\/value\/deadlock\/process-list\/process[5]\/executionStack\/frame\/@sqlhandle)[1]',  'varchar(max)'), 1)order by last_execution_time desc))as qp5\n\nouter apply sys.dm_exec_sql_text (CONVERT(VARBINARY(MAX), x.A.value ('(\/event\/data\/value\/deadlock\/process-list\/process[6]\/executionStack\/frame\/@sqlhandle)[1]',  'varchar(max)'), 1)) as sf6\nouter apply sys.dm_exec_query_plan((select top 1 plan_handle from sys.dm_exec_query_stats where sql_handle = CONVERT(VARBINARY(MAX), x.A.value ('(\/event\/data\/value\/deadlock\/process-list\/process[6]\/executionStack\/frame\/@sqlhandle)[1]',  'varchar(max)'), 1)order by last_execution_time desc))as qp6\n\nouter apply sys.dm_exec_sql_text (CONVERT(VARBINARY(MAX), x.A.value ('(\/event\/data\/value\/deadlock\/process-list\/process[7]\/executionStack\/frame\/@sqlhandle)[1]',  'varchar(max)'), 1)) as sf7\nouter apply sys.dm_exec_query_plan((select top 1 plan_handle from sys.dm_exec_query_stats where sql_handle = CONVERT(VARBINARY(MAX), x.A.value ('(\/event\/data\/value\/deadlock\/process-list\/process[7]\/executionStack\/frame\/@sqlhandle)[1]',  'varchar(max)'), 1)order by last_execution_time desc))as qp7\n\n\n\nwhere  1=1\nand DATEADD(HOUR,DATEDIFF(hour,  SYSUTCDATETIME(),SYSDATETIME() ),A.value ('(\/event\/@timestamp)[1]', 'DATETIME'))  between '2018-01-26 10:26:00.000' and '2018-12-26 10:28:00.000'\n--and d.name ='DB_1'<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">The result<\/h3>\n\n\n\n<p>The result of the query brought us for this period of time to the base where we asked him for the queries that were deadlocked, the list of queries along with the process id, the locking mode, the isolation level that each was running and finally what were the <strong>Victim <\/strong>that is, which were killed so that the rest could continue.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"925\" height=\"120\" src=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/09\/xevents_3.png\" alt=\"\" class=\"wp-image-1876\" srcset=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/09\/xevents_3.png 925w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/09\/xevents_3-300x39.png 300w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/09\/xevents_3-768x100.png 768w\" sizes=\"auto, (max-width: 925px) 100vw, 925px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Sources:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/relational-databases\/extended-events\/quick-start-extended-events-in-sql-server?view=sql-server-ver15\" target=\"_blank\" rel=\"noreferrer noopener\">Quickstart: Extended Events in SQL Server<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>In an earlier article we saw how we create an Extended Event to see queries with a long duration. In this article we will build Extended Event that records deadlocks. All we need to do is create it with a T-SQL command. After it is created, it will record in the path we have declared to it in an XML file how many queries had [...]<\/p>","protected":false},"author":1,"featured_media":702,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,15],"tags":[29,99,23,48,39],"class_list":["post-1893","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-databases","category-ms-sqlserver","tag-databases","tag-extended-events","tag-microsoft","tag-performance_tuning","tag-sql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u03a0\u03ce\u03c2 \u03c3\u03c5\u03bb\u03bb\u03ad\u03b3\u03bf\u03c5\u03bc\u03b5 deadlocked queries \u03bc\u03ad\u03c3\u03c9 Extended Event \u03ba\u03b1\u03b9 \u03c0\u03c9\u03c2 \u03b4\u03b9\u03b1\u03b2\u03ac\u03b6\u03bf\u03c5\u03bc\u03b5 \u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c4\u03bf\u03c5 - DataPlatform.gr<\/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:\/\/www.dataplatform.gr\/en\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u03a0\u03ce\u03c2 \u03c3\u03c5\u03bb\u03bb\u03ad\u03b3\u03bf\u03c5\u03bc\u03b5 deadlocked queries \u03bc\u03ad\u03c3\u03c9 Extended Event \u03ba\u03b1\u03b9 \u03c0\u03c9\u03c2 \u03b4\u03b9\u03b1\u03b2\u03ac\u03b6\u03bf\u03c5\u03bc\u03b5 \u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c4\u03bf\u03c5 - DataPlatform.gr\" \/>\n<meta property=\"og:description\" content=\"\u03a3\u03b5&nbsp;\u03c0\u03b1\u03bb\u03b1\u03b9\u03cc\u03c4\u03b5\u03c1\u03bf \u03ac\u03c1\u03b8\u03c1\u03bf&nbsp;\u03b5\u03af\u03c7\u03b1\u03bc\u03b5 \u03b4\u03b5\u03b9 \u03c0\u03c9\u03c2 \u03b4\u03b7\u03bc\u03b9\u03bf\u03c5\u03c1\u03b3\u03bf\u03cd\u03bc\u03b5&nbsp;Extended Event&nbsp;\u03b3\u03b9\u03b1 \u03bd\u03b1 \u03b4\u03bf\u03cd\u03bc\u03b5 \u03c4\u03b1 queries \u03bc\u03b5 \u03bc\u03b5\u03b3\u03ac\u03bb\u03b7 \u03b4\u03b9\u03ac\u03c1\u03ba\u03b5\u03b9\u03b1. \u03a3\u03b5 \u03b1\u03c5\u03c4\u03cc \u03c4\u03bf \u03ac\u03c1\u03b8\u03c1\u03bf \u03b8\u03b1 \u03c6\u03c4\u03b9\u03ac\u03be\u03bf\u03c5\u03bc\u03b5 Extended Event \u03c0\u03bf\u03c5 \u03ba\u03b1\u03c4\u03b1\u03b3\u03c1\u03ac\u03c6\u03b5\u03b9 \u03c4\u03b1&nbsp;deadlocks. \u03a4\u03bf \u03bc\u03cc\u03bd\u03bf \u03c0\u03bf\u03c5 \u03c7\u03c1\u03b5\u03b9\u03ac\u03b6\u03b5\u03c4\u03b1\u03b9 \u03bd\u03b1 \u03ba\u03ac\u03bd\u03bf\u03c5\u03bc\u03b5 \u03b5\u03af\u03bd\u03b1\u03b9 \u03bd\u03b1 \u03c4\u03bf \u03b4\u03b7\u03bc\u03b9\u03bf\u03c5\u03c1\u03b3\u03ae\u03c3\u03bf\u03c5\u03bc\u03b5 \u03bc\u03b5 \u03ad\u03bd\u03b1 T-SQL command. \u0391\u03c6\u03bf\u03cd \u03b4\u03b7\u03bc\u03b9\u03bf\u03c5\u03c1\u03b3\u03b7\u03b8\u03b5\u03af \u03b8\u03b1 \u03ba\u03b1\u03c4\u03b1\u03b3\u03c1\u03ac\u03c6\u03b5\u03b9 \u03c3\u03c4\u03bf path \u03c0\u03bf\u03c5 \u03c4\u03bf\u03c5 \u03ad\u03c7\u03bf\u03c5\u03bc\u03b5 \u03b4\u03b7\u03bb\u03ce\u03c3\u03b5\u03b9 \u03c3\u03b5 \u03ad\u03bd\u03b1 \u03b1\u03c1\u03c7\u03b5\u03af\u03bf XML \u03cc\u03c3\u03b1 queries \u03b5\u03af\u03c7\u03b1\u03bd\u03b5 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dataplatform.gr\/en\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\/\" \/>\n<meta property=\"og:site_name\" content=\"DataPlatform.gr\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dataplatform.gr\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-01T04:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-14T09:45:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sqlserver.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Stratos Matzouranis\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stratos Matzouranis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\\\/\"},\"author\":{\"name\":\"Stratos Matzouranis\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#\\\/schema\\\/person\\\/e87bf4fd02b65cb6aa0942f87245bbaf\"},\"headline\":\"\u03a0\u03ce\u03c2 \u03c3\u03c5\u03bb\u03bb\u03ad\u03b3\u03bf\u03c5\u03bc\u03b5 deadlocked queries \u03bc\u03ad\u03c3\u03c9 Extended Event \u03ba\u03b1\u03b9 \u03c0\u03c9\u03c2 \u03b4\u03b9\u03b1\u03b2\u03ac\u03b6\u03bf\u03c5\u03bc\u03b5 \u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c4\u03bf\u03c5\",\"datePublished\":\"2023-11-01T04:00:00+00:00\",\"dateModified\":\"2024-10-14T09:45:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\\\/\"},\"wordCount\":91,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_sqlserver.png\",\"keywords\":[\"Databases\",\"Extended Events\",\"Microsoft\",\"Performance Tuning\",\"SQL\"],\"articleSection\":[\"Databases\",\"Microsoft SQL Server\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dataplatform.gr\\\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\\\/\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\\\/\",\"name\":\"\u03a0\u03ce\u03c2 \u03c3\u03c5\u03bb\u03bb\u03ad\u03b3\u03bf\u03c5\u03bc\u03b5 deadlocked queries \u03bc\u03ad\u03c3\u03c9 Extended Event \u03ba\u03b1\u03b9 \u03c0\u03c9\u03c2 \u03b4\u03b9\u03b1\u03b2\u03ac\u03b6\u03bf\u03c5\u03bc\u03b5 \u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c4\u03bf\u03c5 - DataPlatform.gr\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_sqlserver.png\",\"datePublished\":\"2023-11-01T04:00:00+00:00\",\"dateModified\":\"2024-10-14T09:45:40+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dataplatform.gr\\\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_sqlserver.png\",\"contentUrl\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_sqlserver.png\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0391\u03c1\u03c7\u03b9\u03ba\u03ae\",\"item\":\"https:\\\/\\\/www.dataplatform.gr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Databases\",\"item\":\"https:\\\/\\\/www.dataplatform.gr\\\/category\\\/databases\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Microsoft SQL Server\",\"item\":\"https:\\\/\\\/www.dataplatform.gr\\\/category\\\/databases\\\/ms-sqlserver\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"\u03a0\u03ce\u03c2 \u03c3\u03c5\u03bb\u03bb\u03ad\u03b3\u03bf\u03c5\u03bc\u03b5 deadlocked queries \u03bc\u03ad\u03c3\u03c9 Extended Event \u03ba\u03b1\u03b9 \u03c0\u03c9\u03c2 \u03b4\u03b9\u03b1\u03b2\u03ac\u03b6\u03bf\u03c5\u03bc\u03b5 \u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c4\u03bf\u03c5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#website\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/\",\"name\":\"dataplatform.gr - Sky is not the limit!\",\"description\":\"\u0398\u03b5\u03c9\u03c1\u03af\u03b1, \u03bf\u03b4\u03b7\u03b3\u03bf\u03af \u03ba\u03b1\u03b9 \u03c3\u03ba\u03ad\u03c8\u03b5\u03b9\u03c2 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03ba\u03ac\u03bd\u03b5\u03c4\u03b5 \u03c4\u03b7 \u03b4\u03bf\u03c5\u03bb\u03b5\u03b9\u03ac \u03c3\u03b1\u03c2 \u03c0\u03b9\u03bf \u03c0\u03b1\u03c1\u03b1\u03b3\u03c9\u03b3\u03b9\u03ba\u03ac \u03ba\u03b1\u03b9 \u03c0\u03b9\u03bf \u03b5\u03cd\u03ba\u03bf\u03bb\u03b1 \u03c0\u03ac\u03bd\u03c9 \u03c3\u03c4\u03b9\u03c2 \u03b2\u03ac\u03c3\u03b5\u03b9\u03c2 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd, \u03c3\u03c4\u03b7\u03bd SQL, \u03c3\u03c4\u03bf Business Intelligence \u03ba\u03b1\u03b9 \u03c3\u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03b3\u03b5\u03bd\u03b9\u03ba\u03cc\u03c4\u03b5\u03c1\u03b1.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dataplatform.gr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#organization\",\"name\":\"dataplatform.gr\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_logo_wbacki.png\",\"contentUrl\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_logo_wbacki.png\",\"width\":322,\"height\":139,\"caption\":\"dataplatform.gr\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dataplatform.gr\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dataplatform-gr\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#\\\/schema\\\/person\\\/e87bf4fd02b65cb6aa0942f87245bbaf\",\"name\":\"Stratos Matzouranis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g\",\"caption\":\"Stratos Matzouranis\"},\"sameAs\":[\"https:\\\/\\\/www.dataplatform.gr\"],\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/en\\\/author\\\/stratos-matzouranis\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u03a0\u03ce\u03c2 \u03c3\u03c5\u03bb\u03bb\u03ad\u03b3\u03bf\u03c5\u03bc\u03b5 deadlocked queries \u03bc\u03ad\u03c3\u03c9 Extended Event \u03ba\u03b1\u03b9 \u03c0\u03c9\u03c2 \u03b4\u03b9\u03b1\u03b2\u03ac\u03b6\u03bf\u03c5\u03bc\u03b5 \u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c4\u03bf\u03c5 - DataPlatform.gr","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.dataplatform.gr\/en\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\/","og_locale":"en_US","og_type":"article","og_title":"\u03a0\u03ce\u03c2 \u03c3\u03c5\u03bb\u03bb\u03ad\u03b3\u03bf\u03c5\u03bc\u03b5 deadlocked queries \u03bc\u03ad\u03c3\u03c9 Extended Event \u03ba\u03b1\u03b9 \u03c0\u03c9\u03c2 \u03b4\u03b9\u03b1\u03b2\u03ac\u03b6\u03bf\u03c5\u03bc\u03b5 \u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c4\u03bf\u03c5 - DataPlatform.gr","og_description":"\u03a3\u03b5&nbsp;\u03c0\u03b1\u03bb\u03b1\u03b9\u03cc\u03c4\u03b5\u03c1\u03bf \u03ac\u03c1\u03b8\u03c1\u03bf&nbsp;\u03b5\u03af\u03c7\u03b1\u03bc\u03b5 \u03b4\u03b5\u03b9 \u03c0\u03c9\u03c2 \u03b4\u03b7\u03bc\u03b9\u03bf\u03c5\u03c1\u03b3\u03bf\u03cd\u03bc\u03b5&nbsp;Extended Event&nbsp;\u03b3\u03b9\u03b1 \u03bd\u03b1 \u03b4\u03bf\u03cd\u03bc\u03b5 \u03c4\u03b1 queries \u03bc\u03b5 \u03bc\u03b5\u03b3\u03ac\u03bb\u03b7 \u03b4\u03b9\u03ac\u03c1\u03ba\u03b5\u03b9\u03b1. \u03a3\u03b5 \u03b1\u03c5\u03c4\u03cc \u03c4\u03bf \u03ac\u03c1\u03b8\u03c1\u03bf \u03b8\u03b1 \u03c6\u03c4\u03b9\u03ac\u03be\u03bf\u03c5\u03bc\u03b5 Extended Event \u03c0\u03bf\u03c5 \u03ba\u03b1\u03c4\u03b1\u03b3\u03c1\u03ac\u03c6\u03b5\u03b9 \u03c4\u03b1&nbsp;deadlocks. \u03a4\u03bf \u03bc\u03cc\u03bd\u03bf \u03c0\u03bf\u03c5 \u03c7\u03c1\u03b5\u03b9\u03ac\u03b6\u03b5\u03c4\u03b1\u03b9 \u03bd\u03b1 \u03ba\u03ac\u03bd\u03bf\u03c5\u03bc\u03b5 \u03b5\u03af\u03bd\u03b1\u03b9 \u03bd\u03b1 \u03c4\u03bf \u03b4\u03b7\u03bc\u03b9\u03bf\u03c5\u03c1\u03b3\u03ae\u03c3\u03bf\u03c5\u03bc\u03b5 \u03bc\u03b5 \u03ad\u03bd\u03b1 T-SQL command. \u0391\u03c6\u03bf\u03cd \u03b4\u03b7\u03bc\u03b9\u03bf\u03c5\u03c1\u03b3\u03b7\u03b8\u03b5\u03af \u03b8\u03b1 \u03ba\u03b1\u03c4\u03b1\u03b3\u03c1\u03ac\u03c6\u03b5\u03b9 \u03c3\u03c4\u03bf path \u03c0\u03bf\u03c5 \u03c4\u03bf\u03c5 \u03ad\u03c7\u03bf\u03c5\u03bc\u03b5 \u03b4\u03b7\u03bb\u03ce\u03c3\u03b5\u03b9 \u03c3\u03b5 \u03ad\u03bd\u03b1 \u03b1\u03c1\u03c7\u03b5\u03af\u03bf XML \u03cc\u03c3\u03b1 queries \u03b5\u03af\u03c7\u03b1\u03bd\u03b5 [&hellip;]","og_url":"https:\/\/www.dataplatform.gr\/en\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\/","og_site_name":"DataPlatform.gr","article_publisher":"https:\/\/www.facebook.com\/dataplatform.gr\/","article_published_time":"2023-11-01T04:00:00+00:00","article_modified_time":"2024-10-14T09:45:40+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sqlserver.png","type":"image\/png"}],"author":"Stratos Matzouranis","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Stratos Matzouranis","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dataplatform.gr\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\/#article","isPartOf":{"@id":"https:\/\/www.dataplatform.gr\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\/"},"author":{"name":"Stratos Matzouranis","@id":"https:\/\/www.dataplatform.gr\/#\/schema\/person\/e87bf4fd02b65cb6aa0942f87245bbaf"},"headline":"\u03a0\u03ce\u03c2 \u03c3\u03c5\u03bb\u03bb\u03ad\u03b3\u03bf\u03c5\u03bc\u03b5 deadlocked queries \u03bc\u03ad\u03c3\u03c9 Extended Event \u03ba\u03b1\u03b9 \u03c0\u03c9\u03c2 \u03b4\u03b9\u03b1\u03b2\u03ac\u03b6\u03bf\u03c5\u03bc\u03b5 \u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c4\u03bf\u03c5","datePublished":"2023-11-01T04:00:00+00:00","dateModified":"2024-10-14T09:45:40+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dataplatform.gr\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\/"},"wordCount":91,"commentCount":0,"publisher":{"@id":"https:\/\/www.dataplatform.gr\/#organization"},"image":{"@id":"https:\/\/www.dataplatform.gr\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sqlserver.png","keywords":["Databases","Extended Events","Microsoft","Performance Tuning","SQL"],"articleSection":["Databases","Microsoft SQL Server"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dataplatform.gr\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dataplatform.gr\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\/","url":"https:\/\/www.dataplatform.gr\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\/","name":"\u03a0\u03ce\u03c2 \u03c3\u03c5\u03bb\u03bb\u03ad\u03b3\u03bf\u03c5\u03bc\u03b5 deadlocked queries \u03bc\u03ad\u03c3\u03c9 Extended Event \u03ba\u03b1\u03b9 \u03c0\u03c9\u03c2 \u03b4\u03b9\u03b1\u03b2\u03ac\u03b6\u03bf\u03c5\u03bc\u03b5 \u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c4\u03bf\u03c5 - DataPlatform.gr","isPartOf":{"@id":"https:\/\/www.dataplatform.gr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dataplatform.gr\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\/#primaryimage"},"image":{"@id":"https:\/\/www.dataplatform.gr\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sqlserver.png","datePublished":"2023-11-01T04:00:00+00:00","dateModified":"2024-10-14T09:45:40+00:00","breadcrumb":{"@id":"https:\/\/www.dataplatform.gr\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dataplatform.gr\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dataplatform.gr\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\/#primaryimage","url":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sqlserver.png","contentUrl":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sqlserver.png","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/www.dataplatform.gr\/pos-syllegoyme-deadlocked-queries-meso-extended-event-kai-pos-dia\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0391\u03c1\u03c7\u03b9\u03ba\u03ae","item":"https:\/\/www.dataplatform.gr\/"},{"@type":"ListItem","position":2,"name":"Databases","item":"https:\/\/www.dataplatform.gr\/category\/databases\/"},{"@type":"ListItem","position":3,"name":"Microsoft SQL Server","item":"https:\/\/www.dataplatform.gr\/category\/databases\/ms-sqlserver\/"},{"@type":"ListItem","position":4,"name":"\u03a0\u03ce\u03c2 \u03c3\u03c5\u03bb\u03bb\u03ad\u03b3\u03bf\u03c5\u03bc\u03b5 deadlocked queries \u03bc\u03ad\u03c3\u03c9 Extended Event \u03ba\u03b1\u03b9 \u03c0\u03c9\u03c2 \u03b4\u03b9\u03b1\u03b2\u03ac\u03b6\u03bf\u03c5\u03bc\u03b5 \u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c4\u03bf\u03c5"}]},{"@type":"WebSite","@id":"https:\/\/www.dataplatform.gr\/#website","url":"https:\/\/www.dataplatform.gr\/","name":"dataplatform.gr - Sky is not the limit!","description":"\u0398\u03b5\u03c9\u03c1\u03af\u03b1, \u03bf\u03b4\u03b7\u03b3\u03bf\u03af \u03ba\u03b1\u03b9 \u03c3\u03ba\u03ad\u03c8\u03b5\u03b9\u03c2 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03ba\u03ac\u03bd\u03b5\u03c4\u03b5 \u03c4\u03b7 \u03b4\u03bf\u03c5\u03bb\u03b5\u03b9\u03ac \u03c3\u03b1\u03c2 \u03c0\u03b9\u03bf \u03c0\u03b1\u03c1\u03b1\u03b3\u03c9\u03b3\u03b9\u03ba\u03ac \u03ba\u03b1\u03b9 \u03c0\u03b9\u03bf \u03b5\u03cd\u03ba\u03bf\u03bb\u03b1 \u03c0\u03ac\u03bd\u03c9 \u03c3\u03c4\u03b9\u03c2 \u03b2\u03ac\u03c3\u03b5\u03b9\u03c2 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd, \u03c3\u03c4\u03b7\u03bd SQL, \u03c3\u03c4\u03bf Business Intelligence \u03ba\u03b1\u03b9 \u03c3\u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03b3\u03b5\u03bd\u03b9\u03ba\u03cc\u03c4\u03b5\u03c1\u03b1.","publisher":{"@id":"https:\/\/www.dataplatform.gr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dataplatform.gr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dataplatform.gr\/#organization","name":"dataplatform.gr","url":"https:\/\/www.dataplatform.gr\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dataplatform.gr\/#\/schema\/logo\/image\/","url":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_logo_wbacki.png","contentUrl":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_logo_wbacki.png","width":322,"height":139,"caption":"dataplatform.gr"},"image":{"@id":"https:\/\/www.dataplatform.gr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dataplatform.gr\/","https:\/\/www.linkedin.com\/company\/dataplatform-gr\/"]},{"@type":"Person","@id":"https:\/\/www.dataplatform.gr\/#\/schema\/person\/e87bf4fd02b65cb6aa0942f87245bbaf","name":"Stratos Matzouranis","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g","caption":"Stratos Matzouranis"},"sameAs":["https:\/\/www.dataplatform.gr"],"url":"https:\/\/www.dataplatform.gr\/en\/author\/stratos-matzouranis\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/posts\/1893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/comments?post=1893"}],"version-history":[{"count":3,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/posts\/1893\/revisions"}],"predecessor-version":[{"id":5822,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/posts\/1893\/revisions\/5822"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/media\/702"}],"wp:attachment":[{"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/media?parent=1893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/categories?post=1893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/tags?post=1893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}