I am wondering what the literal for a Null character (e.g. \'\\0\') is in TSQL.
Note: not a NULL field value, but the null character (see link). >
I was having the same issue and using nullif solved it for me.
nullif
Select nullif(field_with_nullchar,'') from FOO where BAR = 20