AUTO mode of FOR XML

          

AUTO mode of FOR XML

<<Previous   Next>>

AUTO mode of FOR XML - March 16, 2009 at 16:45 PM by Amit Satpute

Explain the AUTO mode of FOR XML with an example 

AUTO mode returns query results as nested XML elements.

This does not provide much control over the shape of the XML generated from a query result.

The AUTO mode queries are useful to generate simple hierarchies.

SELECT CID, ORDERID, STATUS,
FROM CUSTOMER, ORDER
WHERE CID = ORDERID
ORDER BY CID
FOR XML AUTO 

<<Previous   Next>>
 



Write your comment - Share Knowledge and Experience


 

 
Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring