Hello,
I have been requested to put together a job that I would like reach out to the community for some advice.
- I need to keep 1 week worth of .daily bak files at any given time in e:\SQL_BAK
- I also need to keep 3 months worth of .bak files taken 2days AFTER last business day of month end (example: last business day of Sept is the 30th so I will need to keep Oct 2nd backup for 3 months and each month after)
I currently have an accounting table that has the last business days already defined that I’m thinking I can use to query against for the last business day.
01 2009-01-01 - 2009-01-30
02 2009-02-01 - 2009-02-27
03 2009-03-01 - 2009-03-31
04 2009-04-01 - 2009-04-30
05 2009-05-01 - 2009-05-29
06 2009-06-01 - 2009-06-30
07 2009-07-01 - 2009-07-31
08 2009-08-01 - 2009-08-31
09 2009-09-01 - 2009-09-30
10 2009-10-01 - 2009-10-30
11 2009-11-01 - 2009-11-30
12 2009-12-01 - 2009-12-31
Has anyone out there ever configured anything close to this that may be able to post a code snippet? Thanks!
Configuration: Windows XP Internet Explorer 6.0