How to use Variables in different component

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_第1张图片

Get Value:

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

How to use Variables in different component_第2张图片

 

2. Execute SQL Task component

Set Value:

How to use Variables in different component_第3张图片

Get Value:

How to use Variables in different component_第4张图片

How to use Variables in different component_第5张图片

Thanks.

转载于:https://www.cnblogs.com/vincentDr/p/3238021.html

你可能感兴趣的:(How to use Variables in different component)