1. In Script Task component

Set Value:

Dts.Variables["ErrorMsg"].Value = string.Format("Connection Config Exception:{0}", ex.Message);
Dts.Variables["ErrorStatus"].Value = true;

How to use Variables in different component

Get Value:

string FileName = (string)Dts.Variables["FileName"].Value;

How to use Variables in different component

 

2. Execute SQL Task component

Set Value:

How to use Variables in different component

Get Value:

How to use Variables in different component

How to use Variables in different component

Thanks.

相关文章: