I\'m trying to select from XML that has a null as one of the attributes. Instead of returning a null, it returns a 0. What am I doing wrong? See code below to replicate:>
I've simply used NULLIF to turn empty strings into NULLs as needed.
You can generate nil now using FOR XML, but I've never worked out how to parse it sorry...
nil
FOR XML