hi!
Can any plz guide us, how should we convert database table to .xml document.
Thanks in advance.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
naura paxPosted Oct 5, 2009, 1:54 AM
You can use "XQuery/XPath" tools in your stored procedure to directly convert your table data to xml document.
Also you can retrieve data in your c# data and populate a dataset and use WriteXml method of database to create xml content and later save it as a file.
Please mark as answered if useful.
Roei BarPosted Oct 5, 2009, 2:12 AM
naura paxPosted Oct 5, 2009, 1:56 AM
http://msdn.microsoft.com/en-us/library/ms345117(SQL.90).aspx