Accessing Variables in an SSIS Script Task


/ Published in: C#
Save to your folder(s)

The Script Task uses the **Variables** property of the **Dts** object to access variables that are available through the task’s **ReadOnlyVariables** and **ReadWriteVariables** properties.


Copy this code and paste it in your HTML
  1. string myVar;
  2. myVar = Dts.Variables["MyStringVariable"].Value.ToString();

URL: http://msdn.microsoft.com/en-us/library/ms136031.aspx

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.