Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Change XML output hierarchy in a SELECT...FOR XML clause Expand / Collapse
Posted Monday, June 15, 2009 5:05 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, September 16, 2015 3:52 PM
Points: 1, Visits: 73

I'm trying to create an XML output file with some hierarchy using a a SELECT...FOR XML clause, to group equal values in rows in the same XML node.

I've tried with AUTO and EXPLICIT clauses but its doesn't work as I need.

Best Regards,

Post #735374
Posted Tuesday, June 16, 2009 12:47 AM



Group: General Forum Members
Last Login: Wednesday, February 10, 2016 11:50 AM
Points: 6,897, Visits: 13,559
Hi Valle,

you might want to read the following article
If you have further questions please provide sample data as described in the link in my signature. Please use [ code="xml" ] tag (with removed spaces) for xml sample data.

A pessimist is an optimist with experience.

How to get fast answers to your question
How to post performance related questions
Links for Tally Table , Cross Tabs and Dynamic Cross Tabs , Delimited Split Function
Post #735478
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse