If I execute a 'Select * from XYZ for XML Auto', the result set doesn't contain any fields that had nulls. I need those fields also even if they are null value. Can someone provide any help?
List the columns in the Select statement and use the IsNull function to convert nulls to empty strings.
Select
isnull(colA,'') As ColA,
isnull(colB,'') As ColB,
isnull(colC,'') As ColC,
isnull(colD,'') As ColD
From XYZ Fro XML Auto Terry Broadbent
Please review faq183-874.
"The greatest obstacle to discovery is not ignorance -- it is the illusion of knowledge." - Daniel J Boorstin
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.