After exporting sql grid results (or copy and paste in Excel) - Header is missing. How do I export (or copy) the column titles?

After the sql query runs, when I copy and paste (or export to .csv) results in Excel - the header doesn't come with it.  How do I get the header to copy over?
glabossiAsked:
Who is Participating?
 
chapmandewCommented:
in management studio, to go tools, options, query results, sql server, results to grid...make sure the option is checked to include column headers.
0
 
glabossiAuthor Commented:
THe funny thing is that it is already set like this?  I still can't get the headers!
0
 
chapmandewCommented:
Hmm...you've got me then.
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
glabossiAuthor Commented:
Darn.  Me too!  It should be obvious that that would do it but I still get no headers!  I'm in SQL 2005 Query Analyzer.
0
 
chapmandewCommented:
Thats really wierd....its always worked for me....
0
 
AgeshCommented:
From MSSMS go to  QUERY---QueryOptions--Grid then CHECK on the 'Include column headers when copying or saving results'
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.