Another problem w/ NULL values in XML
From: Art (Art_at_discussions.microsoft.com)
Date: 09/28/04
- Previous message: kinderjoy04: "Re: multiple date params"
- Next in thread: Jonathan Chong: "Re: Another problem w/ NULL values in XML"
- Reply: Jonathan Chong: "Re: Another problem w/ NULL values in XML"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 28 Sep 2004 14:01:03 -0700
We want to convert NULL columns returned in a query to value of 0 when using
it w/ FOR XML AUTO. We used CASE statement to select NULL values and convert
them to 0. This worked fine until the query actually encountered actual
value. Now all the ones that were NULLs get converted to 0 but the one which
had a value and should have not been touched disappeared alltogheter from the
XML document.
WTF?? Any suggestions?
Art
- Previous message: kinderjoy04: "Re: multiple date params"
- Next in thread: Jonathan Chong: "Re: Another problem w/ NULL values in XML"
- Reply: Jonathan Chong: "Re: Another problem w/ NULL values in XML"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|