Below script can be used to get information about the SQL databases,
select backup_start_date, backup_finish_date, database_name,type,name,user_name,descriptionfrom msdb.dbo.backupset
where type='D' ----- I for diff, D for full and L for log
and database_name='master'
order by backup_start_date desc
we will need to use D, I and L for the backup type and should also be change for the required database name.
Post a Comment