SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 HOW TO COPY QUERY OUTPUT DATA TO EXCEL WITH HEADER
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tahseenm
Yak Posting Veteran

USA
62 Posts

Posted - 11/04/2013 :  13:27:21  Show Profile  Reply with Quote
I am trying to run the script on a Query in Sql2005. How can I copy the whole output results with header and data to excel. I could copy the data but I cant get the header. Please let me know. Thanks

moetahsen

James K
Flowing Fount of Yak Knowledge

3555 Posts

Posted - 11/04/2013 :  13:37:46  Show Profile  Reply with Quote
I don't have a SQL 2005 installation, but as I recall it is similar to SQL 2008 - Go to Tools -> Options -> Query REsults -> SQL Server -> Results To Grid and check "Included column headers when copying or saving the results".
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000