
It is very easy to track when was your last backup was happened. You can use the following query.
SELECT xx.name AS [Database],
max(backup_finish_date) AS [LastBackupDate]
FROM [master].[dbo].[sysdatabases]
xx
LEFT OUTER JOIN [msdb].[dbo].[backupset]
xy
ON xy.database_name = xx.name
AND xy.type = 'D'
GROUP BY xx.name
ORDER BY xx.name
|
No comments:
Post a Comment