SQL Server ISNUMERIC() Function
THE WORLD'S LARGEST WEB DEVELOPER SITE

SQL Server ISNUMERIC() Function

❮ SQL Server Functions

Example

Check if the expression is a valid number:

SELECT ISNUMERIC(4567);
Try it Yourself »

Definition and Usage

The ISNUMERIC() function returns 1 if the expression is a valid number, otherwise 0.

Syntax

ISNUMERIC(expression)

Parameter Values

Parameter Description
expression Required. The value to test

Technical Details

Works in: SQL Server 2014, SQL Server 2012, SQL Server 2008 R2, SQL Server 2008, SQL Server 2005

More Examples

Example

Check if the expression is a valid number:

SELECT ISNUMERIC('4567');
Try it Yourself »

Example

Check if the expression is a valid number:

SELECT ISNUMERIC('Hello world!');
Try it Yourself »

Example

Check if the expression is a valid number:

SELECT ISNUMERIC(20*3);
Try it Yourself »

Example

Check if the expression is a valid number:

SELECT ISNUMERIC('2017-08-25');
Try it Yourself »

❮ SQL Server Functions