Skip to content

Commit

Permalink
Merge pull request #3221 from sqlslinger/dev
Browse files Browse the repository at this point in the history
sp_BlitzFirst SET LOCK_TIMEOUT
  • Loading branch information
BrentOzar authored Feb 6, 2023
2 parents d8aefc0 + 7fdab20 commit 8dc35bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sp_BlitzFirst.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2293,8 +2293,9 @@ If one of them is a lead blocker, consider killing that query.'' AS HowToStopit,
CROSS APPLY sys.dm_exec_query_plan(r.plan_handle) AS qp ';

IF EXISTS (SELECT * FROM sys.all_objects WHERE name = 'dm_exec_query_statistics_xml')
SET @StringToExecute = @StringToExecute + N' OUTER APPLY sys.dm_exec_query_statistics_xml(s.session_id) qs_live ';

/* GitHub #3210 */
SET @StringToExecute = N'
SET LOCK_TIMEOUT 1000 ' + @StringToExecute + N' OUTER APPLY sys.dm_exec_query_statistics_xml(s.session_id) qs_live ';

SET @StringToExecute = @StringToExecute + N';
Expand Down

0 comments on commit 8dc35bc

Please sign in to comment.