treat empty string as null sql server code example
Example 1: t sql null or empty string
select * from vendor
where isnull(vendor_email,'') = ''
Example 2: sql check for null and empty string
IF ISNULL(@param) OR @param = '' THEN doSomething...
select * from vendor
where isnull(vendor_email,'') = ''
IF ISNULL(@param) OR @param = '' THEN doSomething...