I read this: How do I check if a Sql server string is null or empty but it not helped me in this situation.
The piece of code from my stored procedure:
I
To check if variable is null or empty use this:
IF LEN(ISNULL(@var, '')) = 0 -- Is empty or NULL ELSE -- Is not empty and is not NULL