I have a query that has approximately 20 columns and I would like to export this to an Excel file with the column headers.
I thought this would be easy to figure out bu
I typically do this by simply click the upper left corner in the results grid, copy, and then paste into Excel. There is one catch, you need to go into options->query results-> SQL Server->results to grid (or text if you want to save to file for import into excel) and turn on include column headers when copying or saving the results. I find this works great.