【问题标题】:Import Error on Dates (Import from oracle 10g to sql server 2005)日期导入错误(从 oracle 10g 导入到 sql server 2005)
【发布时间】:2009-06-23 17:45:48
【问题描述】:

我一直在尝试使用任务导入向导将表从 oracle 10g 导入 SQL Server 2005,但一直收到此错误:

- Copying to [PersonDB].[PEOPLE] (Error)
Messages
Error 0xc0202009: Data Flow Task: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "Invalid character value for cast specification".
 (SQL Server Import and Export Wizard)

Error 0xc020901c: Data Flow Task: There was an error with input column "EFFCHGDT" (416) on input "Destination Input" (269). The column status returned was: "Conversion failed because the data value overflowed the specified type.".
 (SQL Server Import and Export Wizard)

Error 0xc0209029: Data Flow Task: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "input "Destination Input" (269)" failed because error code 0xC020907A occurred, and the error row disposition on "input "Destination Input" (269)" 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.
 (SQL Server Import and Export Wizard)

Error 0xc0047022: Data Flow Task: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Destination - PEOPLE" (256) failed with error code 0xC0209029. The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.
 (SQL Server Import and Export Wizard)

Error 0xc0047021: Data Flow Task: SSIS Error Code DTS_E_THREADFAILED.  Thread "WorkThread0" has exited with error code 0xC0209029.  There may be error messages posted before this with more information on why the thread has exited.
 (SQL Server Import and Export Wizard)

Error 0xc02020c4: Data Flow Task: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
 (SQL Server Import and Export Wizard)

Error 0xc0047038: Data Flow Task: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "Source - PEOPLE" (1) returned error code 0xC02020C4.  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.
 (SQL Server Import and Export Wizard)

Error 0xc0047021: Data Flow Task: SSIS Error Code DTS_E_THREADFAILED.  Thread "SourceThread0" has exited with error code 0xC0047038.  There may be error messages posted before this with more information on why the thread has exited.
 (SQL Server Import and Export Wizard)

我猜这与 oracle 中的日期字段有关。 我在 sql server express 2008 上运行了相同的过程,它导入时没有任何错误。

有谁知道如何让导入过程与 sql server 2005 一起使用?

提前致谢

【问题讨论】:

    标签: sql-server-2005 import


    【解决方案1】:

    您可能正在使用 sql server 2008 中的新日期数据类型,这些数据类型在 2005 年不存在,如 datetime2。在 sql server 2005 中,日期时间数据类型只能追溯到 1753 年 1 月 1 日

    所以您要么必须将它们存储为 2005 年的字符串,要么将其更改为 1/1/1900

    使用具有正确数据类型的 sql 2008

    看看这个,你可以看到第一个日期无效

    select isdate('15000101'), isdate('17530101'),isdate('20080101')
    

    【讨论】:

      猜你喜欢
      • 2010-12-16
      • 1970-01-01
      • 2011-03-02
      • 1970-01-01
      • 2010-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-05
      相关资源
      最近更新 更多