SQL Server Developer Center > SQL Server Forums > SQL Server XML > Creating XMl out of relational tables with deep hierarchy
Ask a questionAsk a question
 

AnswerCreating XMl out of relational tables with deep hierarchy

  • Sunday, October 18, 2009 4:43 PMchandrau Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    New to SQL Serer 2005.
    I have an XSD out of which I created a database using open source utility. Now the tables generated are bit redundant, so some tables have been consolidated. The tables have a relational integrity and the hierarchy is bit deep.

    My task is to create an XML out of the tables. Now If I pass the parent record id to the SQL server, What I would like to have is the whole tree under the parent record. Ideally this should match the XSD I originally used to create the tables in the first place.

    My plan is to use VB.net with minimal coding on the client side. please let me know.

Answers

All Replies