Connecting Tech Pros Worldwide Help | Site Map

Exporting Result Table directly in .xls (Excel) file

Newbie
 
Join Date: Nov 2008
Posts: 7
#1: Nov 13 '08
Is there a command so that instead of displaying the result table (for example the result of the following query) in the grid tab in the SQL Server Analyzer environment, to export it into an .xls file (excel file)?

Expand|Select|Wrap|Line Numbers
  1. select *
  2. from table1
  3.  
Many thanks.
ck9663's Avatar
Expert
 
Join Date: Jun 2007
Posts: 1,925
#2: Nov 13 '08

re: Exporting Result Table directly in .xls (Excel) file


On your query window...

Tools - Options - Query Result - SQL Server - General - Default Destination for results: Results to File


-- CK
Newbie
 
Join Date: Nov 2008
Posts: 7
#3: Nov 13 '08

re: Exporting Result Table directly in .xls (Excel) file


Many thanks for your help!
Reply


Similar Microsoft SQL Server bytes