Hi,
I am working on an application where I need to get the SQL response as XML into an XML file (and to store it in some physical location, say c:\xyz.xml).
I am able to generate the XML content using the provisions available in SQL Server as shown below.
SELECT * FROM @Table FOR XML AUTO, ELEMENTS
where: @Table is a table variable.
I want to know how I can store the query output to a XML file from SQL Server itself.
Thank you