File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1928,7 +1928,11 @@ SELECT
19281928 query_text_pre = bd .value (' (process/inputbuf/text())[1]' , ' nvarchar(max)' ),
19291929 wait_time = bd .value (' (process/@waittime)[1]' , ' bigint' ),
19301930 transaction_name = bd .value (' (process/@transactionname)[1]' , ' nvarchar(1024)' ),
1931- last_transaction_started = bd .value (' (process/@lasttranstarted)[1]' , ' datetime2' ),
1931+ /* lastbatchstarted matches the other three read sites for this column
1932+ (including the blocking-side read 120 lines below that UNION ALLs with
1933+ this row). Previously this site read @lasttranstarted, leaving the same
1934+ column holding two different attributes on blocked vs blocking rows. */
1935+ last_transaction_started = bd .value (' (process/@lastbatchstarted)[1]' , ' datetime2' ),
19321936 last_transaction_completed = bd .value (' (process/@lastbatchcompleted)[1]' , ' datetime2' ),
19331937 wait_resource = bd .value (' (process/@waitresource)[1]' , ' nvarchar(1024)' ),
19341938 lock_mode = bd .value (' (process/@lockMode)[1]' , ' nvarchar(10)' ),
You can’t perform that action at this time.
0 commit comments