http://blog.sqlauthority.com/2010/11/04/sql-server-finding-last-backup-time-for-all-database/
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
沒有留言:
張貼留言
注意:只有此網誌的成員可以留言。