쿼리 잠금 저장 프로세스

3103 단어 저장 프로세스
SELECT

                   REPLACE(

                         REPLACE(XEventData .XEvent. value('(dataalue)[1]' , 'varchar(max)'),

                         '<victim-list>', '<deadlock><victim-list>' ),

                   '<process-list>','<ictim-list><process-list>' )

            

FROM

(select CAST(target_data as xml) as TargetData

from sys .dm_xe_session_targets st

join sys .dm_xe_sessions s on s. address = st. event_session_address

where name = 'system_health'  ) AS Data

CROSS APPLY TargetData. nodes ( '//RingBufferTarget/event') AS XEventData (XEvent)

where XEventData .XEvent. value('@name' , 'varchar(4000)' ) = 'xml_deadlock_report'

좋은 웹페이지 즐겨찾기