sql server check null or empty code example
Example 1: sql check for null and empty string
IF ISNULL(@param) OR @param = '' THEN doSomething...
Example 2: sql if empty then
SELECT COALESCE(NULLIF(SomeColumn,''), ReplacementColumn)
FROM SomeTable