types - 什么变量类型用于表示 SSIS 中的 Money

标签 types ssis currency ssis-data-types

我需要使用“执行 SQL 任务”组件在 SSIS 的变量中加载货币值。 我将 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(货币),但此类型不适用于变量。

Money 的正确类型是什么?

编辑:VS2012 中的变量类型下拉列表框:

variable type listbox 2 variable type listbox 1

最佳答案

SSIS 有一个货币数据类型。

SQL 有一个货币类型。

这些是兼容的。

关于types - 什么变量类型用于表示 SSIS 中的 Money,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3990107/

相关文章:

sql-server - TCP 提供程序 : The semaphore timeout period has expired in SSIS

java - 四舍五入到 5 的倍数

java - 如何检查Currency.getAvailableCurrency() 是否包含我的字符串值?

php - 性能: Empty string or null in PHP

c++ - 公共(public) C++ API 中的类型

c++ - 如何检查存储为字符串的数字( double 类型)是否是 C++ 中的有效 double ?

R 更改数据框中的数据类型

azure - Azure 数据工厂和 SSIS 中的事务

sql-server - 根据 SQL 结果忽略元素

datetime - 在 GWT 中指定自定义货币、数字和日期时间格式有哪些好方法?