Dump Database

3

Is there a way to tell if a database has been DUMP ?

    
asked by anonymous 12.09.2017 / 04:06

1 answer

2

Make a SELECT in the backupset table:

SELECT b.database_name AS base,
       CASE b.type
            WHEN 'D' THEN 'Completo'
            WHEN 'L' THEN 'Log'
            WHEN 'I' THEN 'Diferencial'
            ELSE 'Outro'
        END tipo,
        CONVERT(VARCHAR, b.backup_finish_date, 103) + ' ' + CONVERT(VARCHAR, b.backup_finish_date, 108) AS fim
  FROM msdb.dbo.backupset b
 ORDER BY b.database_name, b.backup_finish_date DESC
  

backupset

     

Contains one row for each backup set. A backup set contains the backup of a single successful backup operation.

    
12.09.2017 / 16:12