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
Of course that works; when @item1 = N'', it IS NOT NULL.
@item1 = N''
IS NOT NULL
You can define @item1 as NULL by default at the top of your stored procedure, and then not pass in a parameter.
@item1
NULL