You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IF EXISTS (SELECT*FROMsys.all_columnsWHERE object_id = OBJECT_ID('sys.dm_exec_query_statistics_xml') AND name ='query_plan'AND @IncludeLiveQueryPlan=1)
663
+
IF EXISTS (SELECT*FROMsys.all_columnsWHERE object_id = OBJECT_ID('sys.dm_exec_query_statistics_xml') AND name ='query_plan'AND @GetLiveQueryPlan=1)
664
664
BEGIN
665
665
SET @BlockingCheck = @BlockingCheck + N'
666
666
INSERT INTO @LiveQueryPlans
@@ -909,9 +909,9 @@ IF @ProductVersionMajor >= 11
909
909
ELSE N''
910
910
END+N'
911
911
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
913
913
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 ?>'''
0 commit comments