Full Database Backups |
SELECT database_name, backup_start_date, type, * FROM msdb.dbo.backupset WHERE backup_start_date BETWEEN DATEADD(hh, -24, GETDATE()) AND GETDATE() AND Type = 'D' ORDER BY backup_set_id DESC GO |
Transaction Log Backups |
SELECT database_name, backup_start_date, type, * FROM msdb.dbo.backupset WHERE backup_start_date BETWEEN DATEADD(hh, -24, GETDATE()) AND GETDATE() AND Type = 'L' ORDER BY backup_set_id DESC GO |
Differential Backups |
SELECT database_name, backup_start_date, type, * FROM msdb.dbo.backupset WHERE backup_start_date BETWEEN DATEADD(hh, -24, GETDATE()) AND GETDATE() AND Type = 'I' ORDER BY backup_set_id DESC GO |
File\File Group Backups |
SELECT database_name, backup_start_date, type, * FROM msdb.dbo.backupset WHERE backup_start_date BETWEEN DATEADD(hh, -24, GETDATE()) AND GETDATE() AND Type = 'F' ORDER BY backup_set_id DESC GO |
全站熱搜
留言列表