﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server 2005 General Discussion  / XML Showplan / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 20 Jun 2013 03:17:05 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: XML Showplan</title><link>http://www.sqlservercentral.com/Forums/Topic525264-149-1.aspx</link><description>[quote][b]Benny Lopez (6/30/2008)[/b][hr]Is there a SS Managment Studio (workbench) feature that would let me save the output automatically?[/quote]Well you can set your results output to "Save to file..", but I doubt that is sufficient for you.Maybe there is a way to use the profiler to do this? Hmmm...</description><pubDate>Tue, 01 Jul 2008 06:23:06 GMT</pubDate><dc:creator>RBarryYoung</dc:creator></item><item><title>RE: XML Showplan</title><link>http://www.sqlservercentral.com/Forums/Topic525264-149-1.aspx</link><description>ok..Gail, really, thanks..but, the restriction that all xml output should go to a single file is really not that important because even if I create many files, I could write a .bat file that combines them into a single file. Where I see the problem is that the user has to click on the results to open the xml tab. Is there a SS Managment Studio (workbench) feature that would let me save the output automatically?Thanks, again...Ben Lopez</description><pubDate>Mon, 30 Jun 2008 20:12:33 GMT</pubDate><dc:creator>Benny Lopez</dc:creator></item><item><title>RE: XML Showplan</title><link>http://www.sqlservercentral.com/Forums/Topic525264-149-1.aspx</link><description>Hmmm, not sure if you can. From what I know of xml, each plan will have to be in a separate file to be valid xml and to be readable.Honestly, I've always either saved the xml to a file from the grid, or done a save-as on an execution plan.</description><pubDate>Mon, 30 Jun 2008 00:01:21 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: XML Showplan</title><link>http://www.sqlservercentral.com/Forums/Topic525264-149-1.aspx</link><description>in SSMS, I have the results going to a text file. I bracket my query with the set showplan_xml on, and offWhen I hit the F5, it asks me to name the output file and everything is ok. However, when I look in the text file the xml is incomplete. Mind you, when I output the results to a grid and click on the xml output, it opens a new window that shows the complete xml. This result can be saved to a file, either with the .sqlplan or .xml type. I'm able to click on the .sqlplan file, and it opens nicely in SSMS. My ultimate goal is to create and save the xml plan for many queries into a single text file. How do you do this? ThanksBen Lopez</description><pubDate>Sun, 29 Jun 2008 15:39:26 GMT</pubDate><dc:creator>Benny Lopez</dc:creator></item><item><title>RE: XML Showplan</title><link>http://www.sqlservercentral.com/Forums/Topic525264-149-1.aspx</link><description>How are you displaying it and saving it?</description><pubDate>Sun, 29 Jun 2008 10:13:07 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: XML Showplan</title><link>http://www.sqlservercentral.com/Forums/Topic525264-149-1.aspx</link><description>Can you post the Query that it is based on?</description><pubDate>Fri, 27 Jun 2008 20:57:53 GMT</pubDate><dc:creator>RBarryYoung</dc:creator></item><item><title>XML Showplan</title><link>http://www.sqlservercentral.com/Forums/Topic525264-149-1.aspx</link><description>When I save the xml execution plan to a file, the data is truncated to the maximum column size 8,192, which results in a invalid formatted xml file. How can I save the complete xml? Thank you, Ben Lopez</description><pubDate>Fri, 27 Jun 2008 12:20:52 GMT</pubDate><dc:creator>Benny Lopez</dc:creator></item></channel></rss>