将变量传递到SSIS中的项目参数 [英] Pass Variables to Project Parameters in SSIS

查看:511
本文介绍了将变量传递到SSIS中的项目参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是这个网络的新手.希望我能找到这个问题的答案.

I am new to this network. Hoping I'll find an answer to this problem.

我有一个带有多个使用项目参数的程序包的SSIS项目.我正在尝试更新项目参数,例如@PeriodStart:2014年5月31日.我找不到动态写入项目参数的方法.

I have a SSIS Project with multiple Packages which are using the Project Parameters. I am trying to update the Project Parameters e.g. @PeriodStart: 2014-05-31. I can't find a way to dynamically write to the Project Parameter.

我在4.0 Framework中使用Visual Studio 2010.请任何人能阐明这一点吗?!

I am using Visual Studio 2010 in 4.0 Framework. Please can anyone shed light on this ?!

亲切问候 巴尔

推荐答案

项目参数是只读的.您要做的就是根据项目参数分配变量,然后读取变量.变量和参数的概述在这里:

Project parameters are read only. What you are after is to assign variables depending on the project parameters and then read the variables. An overview of variables and parameters is here:

http://social.technet.microsoft.com/wiki/contents/articles/22194.use-ssis-variables-and-parameters-in-a-script-task.aspx

例如,您可以将脚本任务添加到控制流中,然后读取项目参数,为脚本任务分配一个readwrite变量,然后使用此变量.

For example, you could add a script task to the control flow and then read in the project parameters, assign a readwrite variable to the script task and then use this variable.

这篇关于将变量传递到SSIS中的项目参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆