Passing a value from ScriptTask to Package
In my script task i get some results. I want to pass that result to the package. How to do this. Thanks.NSG12
March 29th, 2011 3:30pm
Create a Package Level Variable and reference it in the ReadWrite Variable section of the Script Task Dialog. Then in the script itself:
Dts.Variables("MyVariable").Value = <set the value here>
Note that Variable Names are Case Sensitive.
Todd C - MSCTS SQL Server 2005 - Please mark posts as answered where appropriate.
Free Windows Admin Tool Kit Click here and download it now
March 29th, 2011 3:33pm
The easiest way is using
variables.
Here is an example of using SSIS variables in a Script Task:
http://microsoft-ssis.blogspot.com/2010/12/how-to-use-variables-in-script-task.html
Please mark the post as answered if it answers your question | My SSIS Blog:
http://microsoft-ssis.blogspot.com
March 29th, 2011 3:37pm
Thanks all of you. It helped.NSG12
Free Windows Admin Tool Kit Click here and download it now
March 29th, 2011 4:26pm