how to check if something is empty or not ther with sql query 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