I am using SQL Server 2008 R2. When I execute the following query, ISNUMERIC is evaluating to true(1) when the barcode clearly has 'D' inside it.
SELECT ISNUMERIC('7210300106D30')
If I execute the same code with other letter than D or E, it seems to evaluate to false(0) which is what I expect.
SELECT ISNUMERIC('7210300106K30')
Can anyone please shed a light as to why this may be happening? Thanks.
Dis accepted byISNUMERICandCONVERTis probably a holdover from FORTRAN, as that's the only language that does anything with this notation, as far as I can tell. This isn't even consistent in SQL Server itself:1e3is a literal with value1000, but1d3is parsed as the constant1aliased to the column named3.ISNUMERICis the gift that keeps on giving.