monkeybarfan
MIS
- Feb 23, 2005
- 116
Ok, here is what I need to do...
Each day our telephony system (Nortel Symposium) stores event data in tables called, for example, eCallByCallStat20061031. These tables only stay on the system for 2 months and each day the oldest one gets dropped. For several months I have been manually running a DTS package to append all the October tables to, for example, eCallByCallStat_Oct2006.
Essentially I have been appending all the daily tables into one consolidated table per month.
Obviously, doing this manually every few weeks is not good practice and I want to automate the process.
I have automated numerous DTS packages where data is moved between static tables and I have successfully made a few slight amendments with SQL Tasks, but now I have exhausted all my expertise.
I guess the steps I really need the package to go through are...
1. check to see if the table, such as eCallByCallStat_Nov2006 already exists.
2. If it already exists go to step 4.
3. If it doesn't exist then create it.
4. Append eCallByCallStat20060101 to the table above
I would then schedule this package to run daily.
I have tried all sorts of GetDate functions and tried creating variables and using Dynamic Properties Tasks, but each time I have encountered errors and these tightwads I work for won't even purchase books on the subject.
Can anyone help?
Cheers
Each day our telephony system (Nortel Symposium) stores event data in tables called, for example, eCallByCallStat20061031. These tables only stay on the system for 2 months and each day the oldest one gets dropped. For several months I have been manually running a DTS package to append all the October tables to, for example, eCallByCallStat_Oct2006.
Essentially I have been appending all the daily tables into one consolidated table per month.
Obviously, doing this manually every few weeks is not good practice and I want to automate the process.
I have automated numerous DTS packages where data is moved between static tables and I have successfully made a few slight amendments with SQL Tasks, but now I have exhausted all my expertise.
I guess the steps I really need the package to go through are...
1. check to see if the table, such as eCallByCallStat_Nov2006 already exists.
2. If it already exists go to step 4.
3. If it doesn't exist then create it.
4. Append eCallByCallStat20060101 to the table above
I would then schedule this package to run daily.
I have tried all sorts of GetDate functions and tried creating variables and using Dynamic Properties Tasks, but each time I have encountered errors and these tightwads I work for won't even purchase books on the subject.
Can anyone help?
Cheers