SQL SERVER – Copy Data From SSMS Query Result to Excel

Just another day I received a question via email about how to Copy Data From SSMS Query Result to Excel? This is indeed a very simple question but trusts me not everyone knows everything and this blog is dedicated to learning new things – a complicated one or even a simple one.

Let us see how we can copy data from SSMS Query Results to Excel.

First of all – run the query in SSMS query editor and go to the results tab.

In the results tab, RIGHT CLICK on the result tab and select the option of save as type CSV.

SQL SERVER - Copy Data From SSMS Query Result to Excel export1

SQL SERVER - Copy Data From SSMS Query Result to Excel export2

Once you save the file with the extension CSV, you can open the same file with Excel and later on save that as an Excel file if you prefer.

SQL SERVER - Copy Data From SSMS Query Result to Excel export3

There are many other ways to directly load the data from SQL query to Excel but I personally prefer this method as it is very easy.

Here are few other recent blog posts which you may find useful:

Reference: Pinal Dave (https://blog.sqlauthority.com)

Excel, SQL Server, SQL Server Management Studio, SSMS
Previous Post
SQL SERVER – Cannot Shrink Log File 2 (SQLAuthorityDB_log) Because the Logical Log File Located at the End of the File is in Use
Next Post
SQL SERVER – Export Data From SSMS Query to Excel

Related Posts

Leave a Reply