SQL Server data in XML Format

How to display the table data in XML format using SQL Server.

Showing Answers 1 - 3 of 3 Answers

Ravi

  • Nov 21st, 2007
 

The only thing you have to do is to insert "for XML Auto" in your query and the result will be returned in XML format.

Eg. Let there be a table with name tblABC

Normally
    Select * from tblABC

For XML Data
    Select * from tblABC for XML Auto

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions