I'm a DBA, so bear with me, I only know T-SQL.
In DTS, I need to pump data from one machine to another based on a max(date) located in a table on the destination server.
I've looked up Global Variables and I'm this far:
1) Execute SQL Task with Select Max(date) etc. with an output parameter called o_max_date.
2) On success of #1) I have an ActiveX Script Task that uses the following code:
Function Main()
MsgBox "TheMaxPostingDate is " & DTSGlobalVariables("o_max_postingdate".value
Main = DTSTaskExecResult_Success
End Function
I'm not sure what MsgBox means, but the rest is not too bad.
Now, how do I pass the max(date) from the activeX script into my Transform Data Task?
Lezza
In DTS, I need to pump data from one machine to another based on a max(date) located in a table on the destination server.
I've looked up Global Variables and I'm this far:
1) Execute SQL Task with Select Max(date) etc. with an output parameter called o_max_date.
2) On success of #1) I have an ActiveX Script Task that uses the following code:
Function Main()
MsgBox "TheMaxPostingDate is " & DTSGlobalVariables("o_max_postingdate".value
Main = DTSTaskExecResult_Success
End Function
I'm not sure what MsgBox means, but the rest is not too bad.
Now, how do I pass the max(date) from the activeX script into my Transform Data Task?
Lezza