Hi,
I am trying to create Full and Differential backups using SSIS/T-SQL (Execute SQL Task). I have one pkg for Full backup and 1 pkg for Differential backup.
For FullDB Backup pkg, I am using the following query.
--Create a full database backup first. BACKUP DATABASE MyAdvWorks TO MyAdvWorks_1 WITH INIT GO
For DifferentialDB Backup pkg, I am using the following query.
--Create a differential database backup, appending the backup --to the backup device containing the full database backup. BACKUP DATABASE MyAdvWorks TO MyAdvWorks_1 WITH DIFFERENTIAL GO
Is this right? Shoul According to the followingdocument, do I need to run both queries together or the above scenario works?
I run FullDB backup pkg. Then I run Differential backup pkg.
I noticed that Differential.bak is much greater in size than Full.bak.
Am I doing this properly? (I need to have two different pkgs for both types of backups).
Thank You