Left Click just above row 1 in the top left corner of the results grid to highlight all result "cells".
Right Click in the same place and select "Copy"
Paste the results into Excel with the Column Headers in place.
(Note that Excel helpfully converts strings like '0001' into 1, so you may need to format the destination page accordingly before pasting or change and then re-paste.)
Sorry, I still can't "Paste the results into Excel with the Column Headers in place". Where is "Column Headers"? I don't see it at all. I don't know. Maybe because I have an older version?
Click Query
Click "Query Options"
Expand "Results"
Click on "Grid"
Select "Include column headers when copying or saving results"
-George
Microsoft SQL Server MVP My Blogs SQLCop twitter
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
It may just not be a feature of the Express version of the Management Studio.
If you need advanced features, would it hurt you much to spend about 50 USD? That's about the price of SQL Server Developer Edition, and it's the full blown Enterprise version, just with the restriction being for development only.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.