Created
December 20, 2016 08:04
-
-
Save ArseniySavin/0dbc887fb775f3b7a1c9f7bc7ba37b89 to your computer and use it in GitHub Desktop.
Viewing deadlock at sqlserver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT cast(TextData AS XML) | |
,DatabaseName | |
,TransactionID | |
,HostName | |
,ApplicationName | |
,LoginName | |
,SPID | |
,Duration | |
,StartTime | |
,EndTime | |
FROM fn_trace_gettable('D:\trace\DeadLocks2.trc', DEFAULT) | |
WHERE LoginName = 'sa' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment