Joe
2008-11-14 15:59:36 UTC
I have been following Darren Green's excellent article on executing
DTS packages from SPs... I am stuck now though, I have everything
working great, except that I cannot pass a variable from the SP to the
DTS package,
When I set the GlobalV_1 var on execute, I am only able to hardcode
the value in there, instead of using a variable from the SP.
@GlobalV_1='VariableName=VariableValue'
I tried this,
@GlobalV_1='gOldEmpID=' + @OldEmpID + ''
But this returns a "Line 1: Incorrect syntax near '+'." error.
How can I use my variables to pass to the DTS?
Thanks,
Drew
DTS packages from SPs... I am stuck now though, I have everything
working great, except that I cannot pass a variable from the SP to the
DTS package,
When I set the GlobalV_1 var on execute, I am only able to hardcode
the value in there, instead of using a variable from the SP.
@GlobalV_1='VariableName=VariableValue'
I tried this,
@GlobalV_1='gOldEmpID=' + @OldEmpID + ''
But this returns a "Line 1: Incorrect syntax near '+'." error.
How can I use my variables to pass to the DTS?
Thanks,
Drew