Skip to content

Commit

Permalink
Merge pull request #3357 from Montro1981/SQL-Server-First-Responder-K…
Browse files Browse the repository at this point in the history
…it_3350

#3350 DBCC DBinfo fires incorrectly
  • Loading branch information
BrentOzar authored Oct 10, 2023
2 parents 5e7f4f2 + 7b97636 commit acc9b22
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions sp_Blitz.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1109,17 +1109,17 @@ AS
least one of the relevant checks is not being skipped then we can extract the
dbinfo information.
*/
IF NOT EXISTS ( SELECT 1
FROM #BlitzResults
WHERE CheckID = 223 AND URL = 'https://aws.amazon.com/rds/sqlserver/')
AND (
NOT EXISTS ( SELECT 1
FROM #SkipChecks
WHERE DatabaseName IS NULL AND CheckID = 2 )
OR NOT EXISTS ( SELECT 1
FROM #SkipChecks
WHERE DatabaseName IS NULL AND CheckID = 68 )
)
IF NOT EXISTS
(
SELECT 1/0
FROM #BlitzResults
WHERE CheckID = 223 AND URL = 'https://aws.amazon.com/rds/sqlserver/'
) AND NOT EXISTS
(
SELECT 1/0
FROM #SkipChecks
WHERE DatabaseName IS NULL AND CheckID IN (2, 68)
)
BEGIN

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

0 comments on commit acc9b22

Please sign in to comment.