首页 > 解决方案 > SSIS oracle NUMBER vs sql server映射

问题描述

我们正在开发一个包来将数据从 ORACLE DB 复制到 SQL Server 中。我们正在努力解决我们认为的数据类型映射问题。运行包时会抛出以下错误:

Error: 0xC0209029 at Data Flow Task, ORADB1[2]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "ORADB1" failed because error code 0x80131938 occurred, and the error row disposition on "ORADB1.Outputs[ADO NET Source Output].Columns[UNIT_PRICE]" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.

在源代码中,UNIT_PRICE 列的数据类型为 NUMBER,长度为 22:

在此处输入图像描述

这是源数据的一个小样本:

在此处输入图像描述

最初,我们在目标中将 UNIT_PRICE 列设置为 FLOAT。实际上对于所有 NUMBER 列。由于我们几乎没有使用 SSIS 的经验,您能否告诉我们每个 NUMBER 列的适当映射?谢谢

标签: ssissqldatatypes

解决方案


推荐阅读