How to show SQL Server XML format Data
2011
30-Nov-2015
I want to show data XML format in sql server please help me.
Updated on 30-Nov-2015
Anonymous User
30-Nov-2015SQL 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.