tsql to know when dbcc checkdb was run on a database last time

Manjot picture Manjot · May 14, 2010 · Viewed 14.1k times · Source

Using Tsql, how can i know when DBCC checkdb was last run on SQL server (2000, 2005 or 2008)?

Regards

Answer

SQLMenace picture SQLMenace · May 14, 2010

on 2005 and up you can run

DBCC DBINFO ('YourDatabaseName') WITH TABLERESULTS

look for dbi_dbccLastKnownGood