﻿<?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 / T-SQL (SS2K5)  / Saving query results in Excel with column names / 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, 23 May 2013 08:39:52 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Saving query results in Excel with column names</title><link>http://www.sqlservercentral.com/Forums/Topic885872-338-1.aspx</link><description>You can also write the output directly to a file from SSMS.Choose 'output to file' instead of 'output to grid'.You might also like to check the option to 'quote strings containing list separators when saving .csv results'.Yet another alternative is to use the SQLCMD extensions built in to SSMS, there is an example [u][url=http://msdn.microsoft.com/en-us/library/ms174187.aspx]here on MSDN[/url][/u]</description><pubDate>Fri, 19 Mar 2010 03:51:57 GMT</pubDate><dc:creator>Paul White</dc:creator></item><item><title>RE: Saving query results in Excel with column names</title><link>http://www.sqlservercentral.com/Forums/Topic885872-338-1.aspx</link><description>You could also put the query in the Excel spreadsheet using the external data source tool.  Once that is done you could just refresh the spreadsheet on the fly.</description><pubDate>Fri, 19 Mar 2010 03:19:50 GMT</pubDate><dc:creator>tyson.price</dc:creator></item><item><title>RE: Saving query results in Excel with column names</title><link>http://www.sqlservercentral.com/Forums/Topic885872-338-1.aspx</link><description>You are welcome.</description><pubDate>Thu, 18 Mar 2010 15:47:00 GMT</pubDate><dc:creator>OTF</dc:creator></item><item><title>RE: Saving query results in Excel with column names</title><link>http://www.sqlservercentral.com/Forums/Topic885872-338-1.aspx</link><description>AH...I figured it had to be something simple like that.  That did it!  Thank you so much!</description><pubDate>Thu, 18 Mar 2010 15:39:09 GMT</pubDate><dc:creator>aber</dc:creator></item><item><title>RE: Saving query results in Excel with column names</title><link>http://www.sqlservercentral.com/Forums/Topic885872-338-1.aspx</link><description>This are the steps in SSMS for Sql 2008 but I think it should work for 2005:Click on the Tools menu option in SSMS.Click on Options-&amp;gt;Query Results-&amp;gt;Sql Server-&amp;gt;Results to GridTick "Include Column Headers when Copying or Saving the Results"</description><pubDate>Thu, 18 Mar 2010 15:33:29 GMT</pubDate><dc:creator>OTF</dc:creator></item><item><title>Saving query results in Excel with column names</title><link>http://www.sqlservercentral.com/Forums/Topic885872-338-1.aspx</link><description>I've got to be missing something pretty basic here because it doesn't seem this complicated.   :w00t:I want to save the results of a query to an Excel spreadsheet.  No problem, highlight the rows and columns and paste in Excel or right-click and save as a csv.  However, neither of these bring accross the column names though and I have many columns that I would need to type into Excel.Is there a way to also grab the column names?  Thanks!</description><pubDate>Thu, 18 Mar 2010 13:43:26 GMT</pubDate><dc:creator>aber</dc:creator></item></channel></rss>