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
Copy file name to clipboardExpand all lines: sp_BlitzWho.sql
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -814,7 +814,7 @@ IF @ProductVersionMajor >= 11
814
814
END - query_stats.statement_start_offset )
815
815
/ 2 ) + 1), dest.text) AS query_text ,
816
816
derp.query_plan ,
817
-
CAST(COALESCE(qs_live.query_plan, ''<?No live query plan available. To turn on live plans, see https://www.BrentOzar.com/go/liveplans ?>'') AS XML) AS live_query_plan ,
817
+
CAST(COALESCE(qs_live.Query_Plan, ''<?No live query plan available. To turn on live plans, see https://www.BrentOzar.com/go/liveplans ?>'') AS XML) AS live_query_plan ,
FROM derp.query_plan.nodes(''/*:ShowPlanXML/*:BatchSequence/*:Batch/*:Statements/*:StmtSimple/*:QueryPlan/*:ParameterList/*:ColumnReference'') AS Node(Data)
820
820
FOR XML PATH('''')), 1,2,'''')
@@ -1048,13 +1048,13 @@ IF @ProductVersionMajor >= 11
FROM q.query_plan.nodes(''/*:ShowPlanXML/*:BatchSequence/*:Batch/*:Statements/*:StmtSimple/*:QueryPlan/*:ParameterList/*:ColumnReference'') AS Node(Data)
1053
+
FROM q.Query_Plan.nodes(''/*:ShowPlanXML/*:BatchSequence/*:Batch/*:Statements/*:StmtSimple/*:QueryPlan/*:ParameterList/*:ColumnReference'') AS Node(Data)
1054
1054
FOR XML PATH('''')), 1,2,'''')
1055
1055
AS Live_Parameter_Info
1056
1056
FROM @LiveQueryPlans q
1057
-
WHERE (s.session_id = q.session_id)
1057
+
WHERE (s.session_id = q.Session_Id)
1058
1058
1059
1059
) AS qs_live
1060
1060
@@ -1147,7 +1147,7 @@ IF @OutputDatabaseName IS NOT NULL AND @OutputSchemaName IS NOT NULL AND @Output
1147
1147
,[query_text]
1148
1148
,[query_plan]'
1149
1149
+CASEWHEN @ProductVersionMajor >=11THENN',[live_query_plan]'ELSEN''END+ N'
1150
-
,[Cached_Parameter_Info]'
1150
+
,[cached_parameter_info]'
1151
1151
+CASEWHEN @ProductVersionMajor >=11AND @ShowActualParameters =1THENN',[Live_Parameter_Info]'ELSEN''END+ N'
0 commit comments