Skip to content

Commit d7d74b0

Browse files
Merge fix/blockviewer-transaction-attribute-mismatch into dev
2 parents ff9e575 + 4202a17 commit d7d74b0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

sp_HumanEvents/sp_HumanEventsBlockViewer.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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)'),

0 commit comments

Comments
 (0)