• Remember to have in mind the data type that ISNULL and COALESCE return.

    ISNULL will try to convert the second expression to the data type of the first expression.

    COALESCE will convert all expressions to the expression with the highest data type precedence.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2