SyntaxFix
Write A Post
Hire A Developer
Questions
Try this
declare @v varchar(20) set @v = 'Number' select case when isnumeric(@v) = 1 then @v else @v end
and
declare @v varchar(20) set @v = '7082.7758172' select case when isnumeric(@v) = 1 then @v else convert(numeric(18,0),@v) end