Skip to content

Commit 647039a

Browse files
authored
Merge pull request #3744 from VladDBA/sp_BlitzCheckId271
fix for #3742 - sp_Blitz returning an extra result set
2 parents 5f21ae2 + b5d7b6b commit 647039a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sp_Blitz.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6827,10 +6827,10 @@ IF @ProductVersionMajor >= 10
68276827

68286828
IF @Debug IN (1, 2) RAISERROR('Running CheckId [%d].', 0, 1, 271) WITH NOWAIT;
68296829

6830-
SET @tsql = N'SELECT COUNT(1) FROM sys.resource_governor_workload_groups
6830+
SET @tsql = N'SELECT @ExecRet_Out = COUNT(1) FROM sys.resource_governor_workload_groups
68316831
WHERE group_max_tempdb_data_percent <> 0
68326832
AND group_max_tempdb_data_mb IS NULL';
6833-
EXEC @ExecRet = sp_executesql @tsql;
6833+
EXEC @ExecRet = sp_executesql @tsql, N'@ExecRet_Out INT OUTPUT', @ExecRet_Out = @ExecRet OUTPUT;
68346834
IF @ExecRet > 0
68356835
BEGIN
68366836
DECLARE @TempDBfiles TABLE (config VARCHAR(50), data_files INT)

0 commit comments

Comments
 (0)