I want to determine if a value is integer (like TryParse in .NET). Unfortunatelly ISNUMERIC does not fit me because I want to parse only integers a
TryParse
ISNUMERIC
Case When (LNSEQNBR / 16384)%1 = 0 then 1 else 0 end
Use PATINDEX
DECLARE @input VARCHAR(10)='102030.40' SELECT PATINDEX('%[^0-9]%',RTRIM(LTRIM(@input))) AS IsNumber
reference http://www.intellectsql.com/post-how-to-check-if-the-input-is-numeric/