2012-07-20 80 views
1

我已经创建了一个SSIS包,用于从Oracle 10g服务器提取数据并将它们推送到SQL Server 2008中。我在Oracle中的日期数据类型字段名为admission_dateSQL Server SSIS:ADO.net日期问题

以下是我在Oracle中的查询。

select pt_id,admission_date 
from stays 

它工作正常。

当我试图通过SSIS包通过ADO.net在SQL Server中的数据。我收到以下错误消息。

Error: 0xC02090F5 at STAYS, ADO NET Source [1050]: The component "ADO NET Source" (1050) was unable to process the data. ORA-01843: not a valid month

Error: 0xC0047038 at STAYS, SSIS.Pipeline: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "ADO NET Source" (1050) returned error code 0xC02090F5. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.

对此的任何输入都会有帮助。

+0

您可以发布您的'stays'表中的一些样本数据? – Taryn 2012-07-20 19:04:41

+0

请在Oracle和SQL Server中发布表格的表格布局。 – 2012-07-20 19:06:11

+0

Stays Table结构:pt_id | admission_date,Sample Data(123456 | 01-MAR-99,123457 | 01-MAR-99)这是我在Oracle中的表结构 – user1141584 2012-07-20 19:10:53

回答

0

那么,问题是Oracle表是一个视图,而不是一张表,admission_date是从SQL的解码命令中提取的。我保持原样并解决了我的问题。