Good Morning or Afternoon Everyone!
I'm running SQL Server 2000(SP4) on an MS 2003 Operating system. My goal is to automate a backup methodology on some SQL servers we have at our site. I have most of it completed. however, I have a large part implemented through the maintenance plans. I have read that that is not the optimal method for implementing my strategy (posts here and other readings from the Net). I have written some simple code to execute a number of differential backups in a day, added this to a job and now am executing the job the required number of times a day with the correct interval. I am writing these backups using the Disk= Option. What I want to do next is to have a way of rolling from one day to the next with a new "disk=" file. The original one is hard coded and I have it appending to the previous differential backup. I execute a full backup every morning around 2:00 A.M.. How can I limit/expire the current file= process at the end of a 24 hour period and bring in a new one ???
Following is my Code:
BACKUP DATABASE XXXXX2000
TO Disk = 'D:\mssql\(local) Instance\DifferentialTarget\XXXXX2000Differential.bak'
WITH DIFFERENTIAL,
NOINIT
Any help would be great!
Thank you in advance!
Apollo21
I'm running SQL Server 2000(SP4) on an MS 2003 Operating system. My goal is to automate a backup methodology on some SQL servers we have at our site. I have most of it completed. however, I have a large part implemented through the maintenance plans. I have read that that is not the optimal method for implementing my strategy (posts here and other readings from the Net). I have written some simple code to execute a number of differential backups in a day, added this to a job and now am executing the job the required number of times a day with the correct interval. I am writing these backups using the Disk= Option. What I want to do next is to have a way of rolling from one day to the next with a new "disk=" file. The original one is hard coded and I have it appending to the previous differential backup. I execute a full backup every morning around 2:00 A.M.. How can I limit/expire the current file= process at the end of a 24 hour period and bring in a new one ???
Following is my Code:
BACKUP DATABASE XXXXX2000
TO Disk = 'D:\mssql\(local) Instance\DifferentialTarget\XXXXX2000Differential.bak'
WITH DIFFERENTIAL,
NOINIT
Any help would be great!
Thank you in advance!
Apollo21