query sql where string is not null code example Example: sql check for null and empty string IF ISNULL(@param) OR @param = '' THEN doSomething...