monkeybarfan
MIS
- Feb 23, 2005
- 116
Hi
I am trying to back up all the Symposium telephony system data onto our SQL Server using DTS.
It's straightforward enough for the majority of the tables. The daily eCallByCallStat tables are causing me problems. In case anyone isn't aware each day Symposium creates a new table eg eCallByCallStat20051108.
I need to append each daily table into one table on the SQL Server and then schedule the job. At present I have been doing it manually by changing the source data to the new table. I think I need something like a global variable to enable automation of the job.
I have a piece of script...
Function Main()
dim X
dim Y
dim W
W = dateadd("d","-1",date())
X = left(W,2)+mid(W,4,2)+right(W,4)
Y = "eCallByCallStat"+X
msgbox Y
Main = DTSTaskExecResult_Success
End Function
This provides me with a message box that displays yesterday's date. I could maybe use this if I ran the job daily for the previous day but I am unsure of where to fit it in the DTS package. SQL task, Active X or Dynamic Properties Task, for instance.
Can anyone provide some step by step instructions on where it fits in? (I'm not a programmer!) I'm also open to other suggestions.
I am trying to back up all the Symposium telephony system data onto our SQL Server using DTS.
It's straightforward enough for the majority of the tables. The daily eCallByCallStat tables are causing me problems. In case anyone isn't aware each day Symposium creates a new table eg eCallByCallStat20051108.
I need to append each daily table into one table on the SQL Server and then schedule the job. At present I have been doing it manually by changing the source data to the new table. I think I need something like a global variable to enable automation of the job.
I have a piece of script...
Function Main()
dim X
dim Y
dim W
W = dateadd("d","-1",date())
X = left(W,2)+mid(W,4,2)+right(W,4)
Y = "eCallByCallStat"+X
msgbox Y
Main = DTSTaskExecResult_Success
End Function
This provides me with a message box that displays yesterday's date. I could maybe use this if I ran the job daily for the previous day but I am unsure of where to fit it in the DTS package. SQL task, Active X or Dynamic Properties Task, for instance.
Can anyone provide some step by step instructions on where it fits in? (I'm not a programmer!) I'm also open to other suggestions.