I am trying to write a sentence WHEREwhere a specific string variable is not null or empty. The problem I am facing is that some non-empty lines are literal N''. For instance:
declare @str nvarchar(max) = N'㴆';
select case when @str = N'' then 1 else 0 end;
Profitability 1. From what I can compile on Wikipedia , this particular Unicode character is an icon for immersing something that is not semantically equal to an empty string. In addition, the string length is 1, at least in T-SQL.
Is there a better (exact) way to check a T-SQL variable for an empty string?
source
share