Skip to content

Commit c01bcd5

Browse files
committed
BrentOzarULTD#2591 sp_BlitzWho GetLiveQueryPlan
I'm an idiot. I changed the param name but not all the places it was used in code. Closes BrentOzarULTD#2591 again.
1 parent 072f4b8 commit c01bcd5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎sp_BlitzWho.sql‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ SELECT @BlockingCheck = N'SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
660660
);
661661
662662
'
663-
IF EXISTS (SELECT * FROM sys.all_columns WHERE object_id = OBJECT_ID('sys.dm_exec_query_statistics_xml') AND name = 'query_plan' AND @IncludeLiveQueryPlan=1)
663+
IF EXISTS (SELECT * FROM sys.all_columns WHERE object_id = OBJECT_ID('sys.dm_exec_query_statistics_xml') AND name = 'query_plan' AND @GetLiveQueryPlan=1)
664664
BEGIN
665665
SET @BlockingCheck = @BlockingCheck + N'
666666
INSERT INTO @LiveQueryPlans
@@ -909,9 +909,9 @@ IF @ProductVersionMajor >= 11
909909
ELSE N''
910910
END+N'
911911
derp.query_plan ,
912-
CAST(COALESCE(qs_live.Query_Plan, ' + CASE WHEN @IncludeLiveQueryPlan=1
912+
CAST(COALESCE(qs_live.Query_Plan, ' + CASE WHEN @GetLiveQueryPlan=1
913913
THEN '''<?No live query plan available. To turn on live plans, see https://www.BrentOzar.com/go/liveplans ?>'''
914-
ELSE '''<?Live Query Plans were not retrieved. Set @IncludeLiveQueryPlan=1 to try and retrieve Live Query Plans ?>'''
914+
ELSE '''<?Live Query Plans were not retrieved. Set @GetLiveQueryPlan=1 to try and retrieve Live Query Plans ?>'''
915915
END
916916
+') AS XML
917917

0 commit comments

Comments
 (0)