Need a little help on something that is probably elementary.
I have tried the following update:
Update cust_table set cbildt_1 = cast(cbildt as datetime)
cbildt is a decimal 8,0, and the data is a format of i.e.
20050131. There are also some 0 (zero) values.
This is the error that I get:
Server: Msg 8115, Level 16, State 2, Line 1
Arithmetic overflow error converting expression to data type datetime.
The statement has been terminated.
The odd thing is that I have run the following code without
a hitch:
update cust_wo1_table set dtime_date =
cast(woadat as datetime)
where dtime_date is null
In this case, woadat is also a decimal 8,0 with the same
format of i.e. 20050131.
Any help would be appreciated.
I have tried the following update:
Update cust_table set cbildt_1 = cast(cbildt as datetime)
cbildt is a decimal 8,0, and the data is a format of i.e.
20050131. There are also some 0 (zero) values.
This is the error that I get:
Server: Msg 8115, Level 16, State 2, Line 1
Arithmetic overflow error converting expression to data type datetime.
The statement has been terminated.
The odd thing is that I have run the following code without
a hitch:
update cust_wo1_table set dtime_date =
cast(woadat as datetime)
where dtime_date is null
In this case, woadat is also a decimal 8,0 with the same
format of i.e. 20050131.
Any help would be appreciated.