Quantcast
Channel: SQL Server Manageability forum
Viewing all articles
Browse latest Browse all 1519

Get list of all DBs last backup date-time across multiple SQL Servers as scheduled job?

$
0
0

Hello, any ideas of how to do this?

My first guess is having one Sandbox DBA SQL Server that has multiple Linked Servers and then run a script like the following as a SQL Agent job that can output query in email.

SELECTsdb.NameAS DatabaseName,
COALESCE(CONVERT(VARCHAR(12),MAX(bus.backup_finish_date), 101),'-')ASLastBackUpTime
FROMsys.sysdatabases sdb
LEFTOUTERJOINmsdb.dbo.backupset busONbus.database_name = sdb.name
GROUPBYsdb.Name

But any other ways of doing this?

Thanks in advance.



Viewing all articles
Browse latest Browse all 1519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>