How is it possible in SQL Server 2000 to distinguish between an empty string and one full of spaces (i.e. " "
? For example, when I do
[tt]
set @qstr = case
when @first_nm = '-1 [NULL]' then @qstr + 'cnt_first_nm = NULL, '
when @first_nm <> '' then @qstr + 'cnt_first_nm = ''' + @first_nm + ''', '
else @qstr
end[/tt]
and @first_nm = " ", it executes the "else", not the second "when" like I want it to!
Thanks so much,
Lazer![[rainbow] [rainbow] [rainbow]](/data/assets/smilies/rainbow.gif)
[tt]
set @qstr = case
when @first_nm = '-1 [NULL]' then @qstr + 'cnt_first_nm = NULL, '
when @first_nm <> '' then @qstr + 'cnt_first_nm = ''' + @first_nm + ''', '
else @qstr
end[/tt]
and @first_nm = " ", it executes the "else", not the second "when" like I want it to!
Thanks so much,
Lazer
![[rainbow] [rainbow] [rainbow]](/data/assets/smilies/rainbow.gif)