Hello all,
I just wanted to get some feedback regarding methods to automate the verification full backups are taking place daily for all databases on server(s).
I plan on writing a script that will execute the following:
select name, dbid, status, version from master.dbo.sysdatabases where name like N'%' -- get list of dbs
select * from msdb.dbo.backupset where database_name='<db_name>' and type='D' order by backup_start_date
By doing the above I believe I will get the newest full backup for each database on a server. This date can then be compared to the current date. If the two are not equal then notification will be sent to an operator, etc.
Is this a valid approach? Any other suggestions?
Thanks
I just wanted to get some feedback regarding methods to automate the verification full backups are taking place daily for all databases on server(s).
I plan on writing a script that will execute the following:
select name, dbid, status, version from master.dbo.sysdatabases where name like N'%' -- get list of dbs
select * from msdb.dbo.backupset where database_name='<db_name>' and type='D' order by backup_start_date
By doing the above I believe I will get the newest full backup for each database on a server. This date can then be compared to the current date. If the two are not equal then notification will be sent to an operator, etc.
Is this a valid approach? Any other suggestions?
Thanks