Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.
Get restore dates for all databases
From Wiki
Quick and dirty query to see some restore information on your SQL Server
- SELECT
- SERVER_NAME [SOURCE SERVER]
- ,RECOVERY_MODEL
- ,DESTINATION_DATABASE_NAME
- ,RESTOREHISTORY.[USER_NAME]
- ,MAX(RESTORE_DATE)
- FROM
- MSDB.DBO.BACKUPSET
- INNER JOIN MSDB.DBO.RESTOREHISTORY
- ON BACKUPSET.BACKUP_SET_ID = RESTOREHISTORY.BACKUP_SET_ID
- GROUP BY
- SERVER_NAME
- ,RECOVERY_MODEL
- ,DESTINATION_DATABASE_NAME
- ,RESTOREHISTORY.[USER_NAME]
Part of SQL Server Admin Hacks



LTD Social Sitings
Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.