File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,7 @@ SET @StringToExecute = N'
198
198
OUTER APPLY [sys].[dm_exec_sql_text]([r].[sql_handle]) AS [dest]
199
199
OUTER APPLY [sys].[dm_exec_query_plan]([r].[plan_handle]) AS [derp]
200
200
WHERE [r].[session_id] <> @@SPID
201
+ AND [s].[host_name] IS NOT NULL
201
202
AND (([s].[status] <> '' sleeping'' AND ' + CONVERT (NVARCHAR (1 ), @ShowSleepingSPIDs) + ' = 0) OR ' + CONVERT (NVARCHAR (1 ), @ShowSleepingSPIDs) + ' = 1)
202
203
ORDER BY 2 DESC;
203
204
'
@@ -328,6 +329,7 @@ SELECT @StringToExecute = N'
328
329
OUTER APPLY [sys].[dm_exec_sql_text]([r].[sql_handle]) AS [dest]
329
330
OUTER APPLY [sys].[dm_exec_query_plan]([r].[plan_handle]) AS [derp]
330
331
WHERE [r].[session_id] <> @@SPID
332
+ AND [s].[host_name] IS NOT NULL
331
333
AND (([s].[status] <> '' sleeping'' AND ' + CONVERT (NVARCHAR (1 ), @ShowSleepingSPIDs) + ' = 0) OR ' + CONVERT (NVARCHAR (1 ), @ShowSleepingSPIDs) + ' = 1)
332
334
ORDER BY 2 DESC;
333
335
'
You can’t perform that action at this time.
0 commit comments