SQL Query to check when databases were backedup

This query can be used to analyze how the databases are backed up!

-- Recent Backup Information 
SELECT  top 100 physical_device_name,
                backup_start_date,
                backup_finish_date,
                backup_size/1024.0 AS BackupSizeKB
FROM msdb.dbo.backupset b
JOIN msdb.dbo.backupmediafamily m ON b.media_set_id = m.media_set_id
--where database_name = 'your BName'
ORDER BY backup_finish_date DESC
--
Advertisements
This entry was posted in Productivity, Script, SQL, SQL Query, SQL Server, Uncategorized and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s