Determines whether an expression is a valid numeric type.
Transact-SQL Syntax Conventions
ISNUMERIC ( expression )
Is the expression to be evaluated.
int
ISNUMERIC returns 1 when the input expression evaluates to a valid numeric data type; otherwise it returns 0. Valid numeric data types include the following:
numeric
bigint
money
smallint
smallmoney
tinyint
float
decimal
real
The following example uses ISNUMERIC to return all the postal codes that are not numeric values.
ISNUMERIC
USE AdventureWorks; GO SELECT City, PostalCode FROM Person.Address WHERE ISNUMERIC(PostalCode)<> 1; GO