/ Published in: SQL
In a migration scenario, you may need to take a backup and a differential later to split the transfer over time. But to make it work, there shouldn't be any other full backup in between. This will help you check the last full backup date. Of course, you could use it for a lot of other reason.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
-- D = Database. -- I = Database Differential. -- L = Log. -- F = File or Filegroup. SELECT serverproperty('ServerName') server_name, database_name, TYPE, MAX(backup_finish_date) backup_date FROM msdb..backupset GROUP BY serverproperty('ServerName'),database_name, TYPE ORDER BY 2,3