Friday, February 24, 2012

Accessing variable inside Script Task

Hi,

I have a variable in SSIS that I want to access inside the Script Task. I assigned the variable in the ReadOnlyVariables in the Script Task property. How do I access it?

cherriesh

Try

Dim Avariable As Variables
Dts.VariableDispenser.LockForRead("YourPackageVariable")
Dts.VariableDispenser.GetVariables(Avariable)

see

No comments:

Post a Comment