Using SQL Server 2000, I am using a 'for xml auto,elements' to return a single recordset properly tagged and it is working as advertised.
The problem is that I need the recordset tagged in a hierarchial fashion such as:
<GroceryItems>
<DairyItems>
<Items>
<ItemName>Sharp...
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?
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.