How to modify the File/Save Results As menu setting so that the resulting file contains the column headers?

Beverly Penney
Beverly Penney used Ask the Experts™
Hi There,

I wanted to know if it was possible to somehow modify the settings for the  "File/Save Results As"  menu so that the resulting csv includes the column headers? I know you can do it by just selecting all  then "Copy with headers" but was interested to know if it could be done the other way as well?

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2010
Tools - Options - Query Results - Sql Server - Results to Grid - Include column headers when copying or saving results.

In SQL 2008:


Hi om_prakash_p ,

I already had the option checked in the Tools menu (the first link you included) but still when I go
File/Save Results As ( I save it as a csv) it isn't including the headers, is there anything else I should check?

Top Expert 2012

>>is there anything else I should check?<<
Unfortunately, there is no option to set the column headers when the output is set to file.  You will have to find some other way of doing it.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial