I am using query
SELECT (
SELECT * FROM TABLE_NAME
FOR XML RAW ('---'), Root('--') ) as XML
to get query result in XML then I need to copy this xml from result to in txt file, but when I try to copy it, not all the xml is copied. Query returns almost 500000 rows, when I convert it to xml and tried to copy.
Please help me how I can copy full xml.