【发布时间】:2012-11-01 12:23:26
【问题描述】:
我在 SSIS 2008 R2 中使用 执行过程 任务。我有一个变量idVar,它的数据类型为Int32。我需要将此变量传递给任务的属性Arguments,以便进程可执行文件可以将此变量作为参数。我使用表达式将@idVar 分配给Arguments。
现在系统说我需要将 Int 转换为 String,所以我在表达式生成器中使用了以下表达式
(DT_STR, 10, 1252) @[User::IdVar]
它给出以下错误:
Expression cannot be evaluated.
Additional information:
The expression "(DT_STR, 10, 1252) @[User:IdVar]" has a result type of "DT_STR",
which cannot be converted to a supported type.
(Microsoft.DataTransformationServices.Controls)
将数字转换为字符串的正确方法是什么?
【问题讨论】:
标签: ssis