更新时间:2023-02-12 14:32:40
试试这个,
Try this one,
package = null;
package = app.LoadPackage(@"C:\ft\Package.dtsx", null);
package.Variables["User::varParam"].Value = "param value";
您需要在ssis中创建包级别变量在ssis中使用该变量来选择它的值。
现在来自c#你可以设置这个全局参数的值,它将被传递给你的方法。
希望这会有所帮助
问候,
Mubin
Hi,
You need to create package level variable in ssis and use that variable within ssis to pick its value.
now from c# you can set value of this global parameter and it will be passed to your method.
Hope this will help
Regards,
Mubin
>