Sql server 2005 日期导入错误(从oracle 10g导入到sql server 2005)

Sql server 2005 日期导入错误(从oracle 10g导入到sql server 2005),sql-server-2005,import,Sql Server 2005,Import,我一直在尝试使用任务导入向导将表从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 a

我一直在尝试使用任务导入向导将表从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中的日期字段有关。 我在SQLServerExpress2008上运行了相同的过程,导入时没有任何错误

有人知道如何让导入过程与sql server 2005一起工作吗


提前感谢

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

因此,您要么在2005年将其存储为字符串,要么将其更改为1/1/1900

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

看看这个,因为你可以看到第一个日期是无效的

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