Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SELECT bs.database_name AS Name,
bs.backup_finish_date AS LastBackup,
bmf.physical_device_name AS BackupFile
FROM msdb.dbo.backupmediafamily AS bmf
JOIN msdb.dbo.backupset AS bs
ON bmf.media_set_id = bs.media_set_id
WHERE bs.type = 'D'
ORDER BY bs.backup_finish_date DESC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment