Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

SQL Database backup history

SELECT
    bs.database_name,
    bs.backup_start_date,
    bs.backup_finish_date,
    bs.server_name, 
    bs.user_name,
    bs.type,
    bm.physical_device_name
FROM msdb.dbo.backupset AS bs
INNER JOIN msdb.dbo.backupmediafamily AS bm on bs.media_set_id = bm.media_set_id
Source by www.mytecbits.com #
 
PREVIOUS NEXT
Tagged: #SQL #Database #backup #history
ADD COMMENT
Topic
Name
4+5 =