Skip to content

ISNULL

ISNULL( check_expression , replacement_value )

Section titled “ISNULL( check_expression , replacement_value )”
  • check_expression: This is the expression to be checked for NULL. It can be of any of the supported data types in SQL Server.
  • replacement_value: This is the value to return if check_expression is NULL. This should be of the same data type as the check_expression, or an error will be thrown.
SELECT ISNULL(NULL, 'Replacement Value') AS Result;
Result
---------------
Replacement Value

The ISNULL function in SQL server replaces NULL values with a specified replacement value. In the example code, NULL is replaced with ‘Replacement Value’, which is then displayed as the output.