SQL Backup updates msdb tables for backup history/location?
jerryhung
Posts: 138
I am happy that we got 30 licenses!!
As we have SSRS reports setup for all SQL Backups, audits, DRP (customized log shipping) etc..
A lot of them depend on the msdb tables like
msdb.dbo.backupset
msdb.dbo.backupmediafamily
It's been a year since I last used SQL Backup 5.4, my question is
Does SQL Backup insert into those msdb tables as do SQL native backup do?
Or the entire SSRS reports need to be changed to read from SQL Backup's own history tables?
Thanks
As we have SSRS reports setup for all SQL Backups, audits, DRP (customized log shipping) etc..
A lot of them depend on the msdb tables like
msdb.dbo.backupset
msdb.dbo.backupmediafamily
It's been a year since I last used SQL Backup 5.4, my question is
Does SQL Backup insert into those msdb tables as do SQL native backup do?
Or the entire SSRS reports need to be changed to read from SQL Backup's own history tables?
Thanks
Jerry Hung
DBA, MCITP
DBA, MCITP
Comments
SQL Backup uses the SQL VDI as an interface to get the backup data, so the updates to the backup history tables in MSDB are still done by SQL Server in exactly the same way as when you do the backup natively.
That is great news to hear Brian
I look forward to testing it and confirm back here shortly
DBA, MCITP
However, I noticed this odd behaviour, and I want to confirm
1. Does it insert 1 row PER THREAD?
e.g. I had 3 thread for the DIFF backup and it created 3 rows?
2. Does it insert 1 extra row if I chose the Network Copy/Mirror option?
I changed thread=1, but still see 2 rows in msdb.dbo.backupset like below
E:\Backup\msdb\DIFF_REPORTINGSERVICE_msdb_20091103_203603.sqb
E:\Backup\msdb\DIFF_REPORTINGSERVICE_msdb_20091103_203603.sqb
DBA, MCITP
MSSQL doesn't have any concept of multithreaded interleaved backups, so a multithreaded backup "looks" exactly the same to SQL Server as a backup to multiple files.
No idea about the second point, but I would assume you would only have one entry because SQL Server has no idea that SQL Backup is copying the file.
1. Copy to network does not generate additional entries in msdb.dbo.backupset
2. Multi-thread does not create additional entries in msdb.dbo.backupset either
However, it does generate more entries (3 threads = 3 entries, 2 threads = 2 entries) in the msdb.dbo.backupmediafamily, where I get my physical_device_name
They would be using the same media_set_id, but different sequence # and GUID
media_set_id family_sequence_number media_family_id
3600 1 1A8CA95E-0000-0000-0000-000000000000
3600 2 5E49F657-0000-0000-0000-000000000000
My question is just if that is expected/correct behaviour?
If that's supposed to happen, I guess I just need to SELECT DISTINCT or remove duplicate file path by selecting family_sequence_number = 1
DBA, MCITP
So this is the sort of thing that happens behind the scenes if you perform a 3-thread backup: (from SQL Profiler)
This means three entries into the media set table which is the correct behaviour.
Development
Red-Gate Software
I would just change the JOIN condition filter
DBA, MCITP