How to get backup information of any SQL database.

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,description
from 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.
Labels: ,

Post a Comment

[blogger][facebook]

Author Name

Contact Form

Name

Email *

Message *

Powered by Blogger.