I've got some blank values in my table, and I can't seem to catch them in an IF statement.
I've tried
IF @value = ''
and if @value = NULL
and neither one catches the blank values. Is there any way to test whether or not a varchar is entirely whitespace?
AHA! Turns out I was testing for null wrong. Thanks.