I need a consistent way to monitor databases that are read-only log shipped copies of production databases. In the past I have relied on the following methods:
Although the above methods work, they can't be implemented for every log shipped database that I query for various reasons. What is the best method for monitoring the "data as of" date for a log shipped database?
You have all the information you need in the Backup and Restore tables: