I'm getting this frustrating error:
Arithmetic overflow error converting varchar to data type numeric
Note: hours is Varchar(50) & BIGCLEAN is numeric(18, 2)
With the following code:
UPDATE [dbo].[KSFTABLE] SET [BIGCLEAN] = case
when [hours] is NULL then NULL
when [hours] = ' ' then NULL
when [hours] = '-' then NULL
else cast ([hours] as numeric(18,2))
end ;
`before anelse. - Mike Nakishoursyou are receiving this error. - Mike Nakishours. I think you need to look for suspicious values in yourhourscolumn. - Mike NakisBIGCLEANdefined? - Mike Nakis