You will want to read up on the FOR XML command in SQL Server. This will take the recordset that you create and turn it into an XML document.
<pre>SELECT *
FROM YourTable
FOR XML AUTO</pre>
You can find more information in Books OnLine or in the tip <a href="http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1265579,00.html">T-SQL commands vs. XML AUTO in SQL Server</a>.
Last Wiki Answer Submitted: August 7, 2008 8:08 am by Denny Cherry64,520 pts.
All Answer Wiki Contributors: Denny Cherry64,520 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
Check out my SQL Server blog “SQL Server with Mr Denny” for more SQL Server information.