The ISNUMERIC()
function in SQL Server enables you to check whether or not an expression is numeric.
However, there may be times where you get results that you didn’t expect. This could happen if you have an expression that contains a character that is not a number, but is still accepted by ISNUMERIC()
as being numeric.
There are a bunch of characters that ISNUMERIC()
accepts as numeric that you might not have thought of as numeric. These include characters such as plus (+
), minus (-
), and the various currency symbols. Also, depending on its placement, the letter e
could also allow the whole expression to be interpreted as numeric.