Oracle to SQL2005 DATETIME field overflows in SSIS

前端 未结 4 2068
日久生厌
日久生厌 2021-01-22 20:32

I\'m importing data from Oracle to SQL Server 2005 using SSIS. I think the datetime fields in Oracle are stored to a higher precision than SQL Server 2005 \"DATETIME\" fields wi

4条回答
  •  Happy的楠姐
    2021-01-22 21:02

    The issue in this is that SQL Server is limited in what dates are valid (January 1, 1753, through December 31, 9999), while Oracle dates from January 1, 4712 BCE through December 31, 9999. So any date in Oracle less than January 1, 1753 will overflow the datetime sql server datatype.

    If you move up to Sql 2008 you can use Datetime2 type to help with this issue as that has valid dates from 0001-01-01 through 9999-12-31.

    See details here: Sql Server Date and Time types

    And here: Oracle Date Type

提交回复
热议问题