2. Session Overview
•FOR XML Clause
•RAW – Including ROW, ROOT and ELEMENTS
•AUTO
•PATH – With adding attributes
and nameless fields
3. FOR XML
• Required for using RAW, AUTO, EXPLICIT PATH
• Transforms result set into XML in a single result
4. FOR XML - RAW
• Each row is turned into an XML node named “row”
• Each column is an attribute
• You can replace “row” with your own name
• To make it well formed, add the “root” element
5. FOR XML – RAW, continued
• If you don’t want column values as attributes use
“ELEMENTS”
13. Questions?
• RAW – Including ROW, ROOT and ELEMENTS
• AUTO
• PATH – With adding attributes
and nameless fields
Presentation Recording, Slides and Scripts
– Available at: http://www.AaronBuma.com