Here is the script I used:
Select dtb.name as [Database Name], (select max(backup_finish_date) from msdb..backupset
where type = 'D' and database_name = dtb.name
) AS [Last Database Backup Date] ,
(select max(backup_finish_date) from msdb..backupset
where type = 'L' and database_name = dtb.name
) AS [Last Log Backup Date]
FROM
master.dbo.sysdatabases AS dtb
No comments:
Post a Comment
Thank you for commenting!