SSIS中Script访问自定义变量

Variables vars=Dts.Variables;

Dts.VariableDispenser.LockForRead("testname");
Dts.VariableDispenser.GetVariables(ref vars);
MessageBox.Show(vars["testname"].Value.ToString());
Dts.TaskResult = (int)ScriptResults.Success;

你可能感兴趣的:(script)