Hey there,
I'm sure this shouldn't be tough, but I think I'm a bit too close to see the wood for the trees today.
I'm populating Table1 from Table2. There's a date column in 2 but not in 1, so the end of the statement looks like this:
I'm getting:
Server: Msg 242, Level 16, State 3, Line 15
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.
I can't think why this would occur, other than it's baulking because there's no corresponding column in the source table. But I'd rather avoid tacking a job at the end of this one to go through all the inserted records and updating them with the sysdate separately.
Any ideas?
I'm sure this shouldn't be tough, but I think I'm a bit too close to see the wood for the trees today.
I'm populating Table1 from Table2. There's a date column in 2 but not in 1, so the end of the statement looks like this:
Code:
...
convert(int,replace("intran ttl adjd",',','')),
"fcst stk si qty",
"fcst cs si qty",
"fcst wk si qty", --last Table1 column
convert(varchar, GETDATE(), 103)
FROM Table1
Server: Msg 242, Level 16, State 3, Line 15
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.
I can't think why this would occur, other than it's baulking because there's no corresponding column in the source table. But I'd rather avoid tacking a job at the end of this one to go through all the inserted records and updating them with the sysdate separately.
Any ideas?