Ankit Singh
Total Post:341
Points:2389
I want to show data XML format in sql server please help me.
© Copyright © 2010 - 2018 MindStick Software Pvt. Ltd. All Rights Reserved
Post:254
Points:1810Re: How to show SQL Server XML format Data
SQL Server lets you retrieve data as XML by supporting the FOR XML clause, which can be included as part of your query. You can use the FOR XML clause in the main (outer) query as well as in subqueries. The clause supports numerous options that let you define the format of the XML data.
The AUTO mode in a FOR XML clause is slightly different from the RAW mode in the way that it generates the XML result set. The AUTO mode generates the XML by using heuristics based on how the SELECT statement is defined.