Below script shows you all database backup files.
It shows you Database Name, backup done by which user, backup file location, backup start date time and end date time and backup file size.
SELECT database_name, user_name as ExecutedBy, physical_device_name,
backup_start_date, backup_finish_date, backup_size
FROM msdb..backupset bckset
INNER JOIN msdb..backupmediafamily bckfmly
ON bckset.media_set_id = bckfmly.media_set_id
It shows you Database Name, backup done by which user, backup file location, backup start date time and end date time and backup file size.
SELECT database_name, user_name as ExecutedBy, physical_device_name,
backup_start_date, backup_finish_date, backup_size
FROM msdb..backupset bckset
INNER JOIN msdb..backupmediafamily bckfmly
ON bckset.media_set_id = bckfmly.media_set_id
No comments:
Post a Comment