Home Forums SQL Server 2005 T-SQL (SS2K5) Error converting datatypes ('NULL' to int and VARCHAR to int) RE: Error converting datatypes ('NULL' to int and VARCHAR to int)

  • Hey Mister Magoo!

    Well - that definitely changed things, but now it creates a whole new error all together (I went back to the first set of INSERT statements, and took your advice to simply change 'NULL' to NULL), but now I get this...

    Msg 242, Level 16, State 3, Line 1

    The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.

    The statement has been terminated.

    Msg 242, Level 16, State 3, Line 2

    The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.

    The statement has been terminated.

    Msg 242, Level 16, State 3, Line 3

    The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.

    The statement has been terminated.

    Msg 242, Level 16, State 3, Line 4

    The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.

    The statement has been terminated.

    Msg 242, Level 16, State 3, Line 5

    The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.

    The statement has been terminated.

    P.S. I mistitled my post here - in the second set of INSERTS it isn't varchar to int, but varchar to numeric. I've been looking at data from that prespective (at numeric type datatype columns), but no luck there either.