Created
January 4, 2015 15:59
-
-
Save martin9700/eb0e6e6867837ebf1ea8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT sdb.Name AS DatabaseName, | |
COALESCE(CONVERT(VARCHAR(12), MAX(bus.backup_finish_date), 101),'-') AS LastBackUpTime | |
FROM sys.sysdatabases sdb | |
LEFT OUTER JOIN msdb.dbo.backupset bus ON bus.database_name = sdb.name | |
GROUP BY sdb.Name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment