PRINT CONVERT(NUMERIC(18,0), '')
produces Error converting data type varchar to numeric.
However,
PRINT CONVERT(INT, '')
produces 0
without error...
Question: Is there some SQL Server flag for this or will I need to do case statements for every varchar to numeric conversion? (aside from the obvious why?)
case when @a not like '%[^0-9.]%'
is very close but without isnumeric(), it would accept things like '123.45.67' – Shoifet