Invalid character value for cast specification

  • Hello All,

    I'm having a little trouble with importing an oracle table into sql server 2000 using an ODBC connection.

    The importing works okay excpet an error appears:

    Inser Error, column 228 ('TR_AUTHENT_DT', DBTYPE_DBTIMESTAMP),staus 6: Data overflow.

    Invalid character value for cast specification.

    Any help is appreciated.

    Thanks,

    Ryan

     

  • Do you have values before 1900/01/01?

  • No...I don't think the values are before that date format. I've checked the original table also...but everything okay!! weird.

    Ryan

     

  • What are the min a max values??

    datetime

    between 1753/01/01 and 9999/12/31

    smalldatetime

    between 1900/01/01 and 2079/06/06

  • Remi,

    From looking at the design of the table, the min a max value is

    datetime: betwen 1753/01/01 and 9999/12/31.

    Thanks

  • Now I meant in the oracle table you wanted to transer .

  • I may have to check with one of the DBAs since I'm not able to review the design from my local station.

     

  • This is the only possible explanation I can give... some dates are just wrong (not likely as I assume Oracle validates the data), or out of range.

  • Remi,

    Thanks for your help!!

    Ryan

  • So what was the problem?

  • One possibility is that there is a column that has all date fields with format mmddyyyy and every data is entered as (1/1/1900).  I may ask the DBA to delete this column.

     

    Ryan

  • You can always try to rebuild the data into the iso standard using string functions and retry the import.

Viewing 12 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic. Login to reply