Is there a way to check when was the last integrity check run for each database?
I know when the service startup it checks for these values, so they exist, and they are probably writen on the database header information.
By the way I would like an T-SQL solution.
You can get this information from the Boot Page of the database. i.e. Page ID 9.
When the SQL Server starts up, it reports the last DBCC CHECKDB date as an informational message. It is not running the command, just reporting.
To see from T-SQL this execute this
This procedure takes four parameters: