Skip to content

Last Good Check DB on master database didn't get update #914

Answered by DavidWiseman
chucklor asked this question in Q&A
Discussion options

You must be logged in to vote

The Last Good Check DB gets updated when you run DBCC CHECKDB. It seems like this isn't been updated. You can run this on your monitored instance to check:

SELECT database_id,name,CAST(DATABASEPROPERTYEX(name,'LastGoodCheckDbTime') as DATETIME) as LastGoodCheckDbTime
FROM sys.databases

Note: The collection uses this query which accounts for older versions of SQL, but if you are on a reasonably modern version of SQL it's the query above that will run.

To fix the problem you can run this on your monitored instance:

USE master
GO
DBCC CHECKDB WITH NO_INFOMSGS,ALL_ERRORMSGS

You would need to investigate why it's not been run from your agent job though.

Once the DBCC check has run on your mo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chucklor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants