Search This Blog

Friday, July 9, 2010

Query to find when last Full Backup happened

Query to find when last Full Backup happened

select backup_finish_date,database_name
from msdb..backupset o
where backup_finish_date = ( select max(backup_finish_date)
from msdb..backupset i
where i.database_name = o.database_name
and type = 'D')
and type = 'D'
and database_name in ( select name from master..sysdatabases)

No comments: