SQL-Server-First-Responder-Kit icon indicating copy to clipboard operation
SQL-Server-First-Responder-Kit copied to clipboard

sp_BlitzBackups -- Include "Physical Device Name" information in pushed backup history

Open dansqldba opened this issue 9 years ago • 5 comments

Do you want to request a feature or report a bug? Feature

The backup history which is pushed to a central location does not currently include the "Physical Device Name" as shown on a local server's "Backup and Restore History" report built into SSMS.

Storing the physical location of the backup might be useful information, in my case, when writing reports which use this consolidated backup history to centralise the reporting.

dansqldba avatar Jun 02 '17 14:06 dansqldba

Real quick -- we collect all our data from dbo.backupset, is the data you're looking for in that table, or in a different one? if it's in a different table, it's a bigger change for all our queries.

BlitzErik avatar Jun 02 '17 17:06 BlitzErik

Howdy Dan!

Just checking in on this question before I start working on it.

Thanks!

BlitzErik avatar Jun 16 '17 14:06 BlitzErik

Removing milestone until we hear back from @dansqldba

BlitzErik avatar Jun 22 '17 19:06 BlitzErik

Hi @BlitzErik, sorry for the delay, been enjoying some annual leave!

It's in a different table, msdb.dbo.backupmediafamily I believe, the physical_device_name column.

SELECT backupset.* ,
       backupmediafamily.physical_device_name
FROM   backupset
       LEFT JOIN backupmediafamily ON backupset.media_set_id = backupmediafamily.media_set_id;

I guess that does complicate things a touch! Completely understand if you don't wish to pursue this, but I'm happy to help if I can.

dansqldba avatar Jun 26 '17 14:06 dansqldba

Ooh, yeah, that would change a heck of a lot of code and a couple table definitions. I think we have to pass on this one for now. Thanks for the suggestion, though.

BlitzErik avatar Jun 26 '17 16:06 BlitzErik