views:

28

answers:

1

Is it possible to do so using T-SQL alone? What query would you write against the system tables?

+3  A: 

Use the field restore_date in the restorehistory table in the msdb database.

MSDN - restorehistory

SELECT
MAX(restore_date)
FROM
msdb.dbo.restorehistory
WHERE destination_database_name = 'SomeDB'
thedugas