我需要使用“执行 SQL 任务”组件在 SSIS 中的变量中加载 Money 值。我将 SELECT 的返回列映射到一个变量。我已将变量“UnknownMoney”声明为 Double 或 Single,但我总是收到错误消息:
Error: 0xC002F309 at Load Dummy vars, Execute SQL Task: An error occurred while assigning a value to variable "UnknownMoney": "The type of the value being assigned to variable "User::UnknownMoney" differs from the current variable type. Variables may not change type during execution. Variable types are strict, except for variables of type Object.".
SSIS 中的 Money 列类型是 DT_CY(货币),但此类型不适用于变量。
什么是金钱的正确类型?
编辑:VS2012中的变量类型下拉列表框: