Skip to content

Commit 4c4dbbd

Browse files
authored
Merge pull request #1211 from Gavin83/patch-1
Read only databases incorrectly listed as not having had a DBCC CHECKDB - #1207
2 parents 4802405 + 2e66f94 commit 4c4dbbd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sp_Blitz.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6254,6 +6254,9 @@ IF @ProductVersionMajor >= 10
62546254
FROM
62556255
#SkipChecks
62566256
WHERE CheckID IS NULL OR CheckID = 68)
6257+
AND DB2.DbName NOT IN ( SELECT name
6258+
FROM sys.databases
6259+
WHERE is_read_only = 1)
62576260
AND CONVERT(DATETIME, DB2.Value, 121) < DATEADD(DD,
62586261
-14,
62596262
CURRENT_TIMESTAMP);

0 commit comments

Comments
 (0)