Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4c4dbbd

Browse files
Merge pull request BrentOzarULTD#1211 from Gavin83/patch-1
Read only databases incorrectly listed as not having had a DBCC CHECKDB - BrentOzarULTD#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)

AltStyle によって変換されたページ (->オリジナル) /