Oracle to SQL2005 DATETIME field overflows in SSIS

前端 未结 4 2038
日久生厌
日久生厌 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条回答
  •  旧巷少年郎
    2021-01-22 21:22

    I will suggest to use the following instruction in your SELECT statement:

    CASE WHEN date_birth < TO_DATE('01-01-1753','DD-MM-YYYY') THEN NULL
    ELSE to_char(date_birth, 'YYYY-MM-DD HH24:MI:SS') END AS date_birth
    

提交回复
热议问题