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 (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse

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