The reserve column is a varchar, to perform sums on it I want to cast it to a deciaml. But the SQL below gives me an error
select cast(Reserve as decimal) fr
I am also facing this issue and I solved by below method. I am sharing this because it may helpful to some one.
declare @g varchar (50) set @g=char(10) select isnumeric(@g),@g, isnumeric(replace(replace(@g,char(13),char(10)),char(10),''))