Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Obtaining null values using the FOR XML clause

Status
Not open for further replies.

sigven

Programmer
Jul 2, 2001
1
NO
Hi.

I have a slight problem retrieving xml-data from
Sql server 2000 using the FOR XML clause. My wish is that all tuples in each table will all get the same number of attributes in xml. However, if there are som null values in some column in the database,
the xml won't produce an attribute with value "null".

More precisely: How do I obtain xml-attributes with
"null"-values from the server?

-sig-

programmer from Norway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top