Skip to content

Commit acc9b22

Browse files
authored
Merge pull request #3357 from Montro1981/SQL-Server-First-Responder-Kit_3350
#3350 DBCC DBinfo fires incorrectly
2 parents 5e7f4f2 + 7b97636 commit acc9b22

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

sp_Blitz.sql

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,17 +1109,17 @@ AS
11091109
least one of the relevant checks is not being skipped then we can extract the
11101110
dbinfo information.
11111111
*/
1112-
IF NOT EXISTS ( SELECT 1
1113-
FROM #BlitzResults
1114-
WHERE CheckID = 223 AND URL = 'https://aws.amazon.com/rds/sqlserver/')
1115-
AND (
1116-
NOT EXISTS ( SELECT 1
1117-
FROM #SkipChecks
1118-
WHERE DatabaseName IS NULL AND CheckID = 2 )
1119-
OR NOT EXISTS ( SELECT 1
1120-
FROM #SkipChecks
1121-
WHERE DatabaseName IS NULL AND CheckID = 68 )
1122-
)
1112+
IF NOT EXISTS
1113+
(
1114+
SELECT 1/0
1115+
FROM #BlitzResults
1116+
WHERE CheckID = 223 AND URL = 'https://aws.amazon.com/rds/sqlserver/'
1117+
) AND NOT EXISTS
1118+
(
1119+
SELECT 1/0
1120+
FROM #SkipChecks
1121+
WHERE DatabaseName IS NULL AND CheckID IN (2, 68)
1122+
)
11231123
BEGIN
11241124

11251125
IF @Debug IN (1, 2) RAISERROR('Extracting DBCC DBINFO data (used in checks 2 and 68).', 0, 1, 68) WITH NOWAIT;

0 commit comments

Comments
 (0)