xml create form sql database

5 pts.
Tags:
SQL Server import/export
XML
i want to create xml file from sqldatabase.i hav many record and i want dynamically create xml file.ihave a multi table taht i want in xml file
ASKED: August 7, 2008  5:22 AM
UPDATED: August 7, 2008  1:23 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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>.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following