Asked by:
Is there a way I can save a XML Result Set to a file?

Question
-
All replies
-
Hi,
Please check these links:
https://stackoverflow.com/questions/38808516/how-to-save-sql-query-result-to-xml-file-on-disk
Please mark this as answer if it solved your issue.
Please vote this as helpful if it helps to solve your issue.
Thanks,
Arulmouzhi -
Hi ITBobbyP,
My understanding that you are in SSMS.
You need to click on the blue link in the SSMS Results pane, and select File => Save..
Please see below.
- Edited by Yitzhak Khabinsky Wednesday, September 18, 2019 5:56 PM
-
-
-
Hi ITBobbyP,
- What is your SSMS version?
I shared with you a screen shot of my SSMS, its version is 17.9.1
- Your XML file is not indented, which is ok. That's why it is a one line.
To properly see an XML file, you can open it in any Internet browser.
- Edited by Yitzhak Khabinsky Wednesday, September 18, 2019 11:43 PM
- What is your SSMS version?
-
Hi ITBobbyP,
Did you save in this way?
or
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- Edited by Sabrina ZhangMicrosoft contingent staff Thursday, September 19, 2019 2:32 AM