• Nice. But try it.

    DECLARE @NumericKey INT

    SET @NumericKey = NULL

    SELECT ISNULL(@NumericKey, 0), IsNumeric(@NumericKey),@NumericKey

    SET @NumericKey = ''

    SELECT ISNULL(@NumericKey, 0), IsNumeric(@NumericKey),@NumericKey

    GO

    DECLARE @NumericKey VARCHAR(30)

    SET @NumericKey = NULL

    SELECT ISNULL(@NumericKey, 0), IsNumeric(@NumericKey),@NumericKey

    SET @NumericKey = ''

    SELECT ISNULL(@NumericKey, 0), IsNumeric(@NumericKey),@NumericKey