SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL select statement results to XL file


SQL select statement results to XL file

Author
Message
HBK_4700
HBK_4700
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1021 Visits: 1834
I am executing a script to get the required report in prod server. How to get that result into XL file?

Please let me know the process, I am using sql 2005 version
LutzM
LutzM
SSChampion
SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)

Group: General Forum Members
Points: 13005 Visits: 13559
What do you mean by "XL file"?
Is it a typo meaning XML structure or do you want to store an "eXtra Large" file?
If the former, please search for "XML Workshop" on this site. This will give you a list of articles by J. Sebastian covering a lot of questions regarding usage of XML.



Lutz
A pessimist is an optimist with experience.

How to get fast answers to your question
How to post performance related questions
Links for Tally Table , Cross Tabs and Dynamic Cross Tabs , Delimited Split Function
HBK_4700
HBK_4700
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1021 Visits: 1834
lmu92 (11/10/2009)
What do you mean by "XL file"?
Is it a typo meaning XML structure or do you want to store an "eXtra Large" file?
If the former, please search for "XML Workshop" on this site. This will give you a list of articles by J. Sebastian covering a lot of questions regarding usage of XML.


I need a select statement result to microsoft office XL file for reporting purpose
Erich Brinker
Erich Brinker
Old Hand
Old Hand (381 reputation)Old Hand (381 reputation)Old Hand (381 reputation)Old Hand (381 reputation)Old Hand (381 reputation)Old Hand (381 reputation)Old Hand (381 reputation)Old Hand (381 reputation)

Group: General Forum Members
Points: 381 Visits: 633
There are a few ways you can do this.

1. In Excel you can connect to a database and have the query come back to a worksheet.

2. If it is a 1 time thing, you can use the data import/export wizard. Right click on the database you are pulling information from and the Import/Export data option comes up. You select your database as the source, tell it you want to use a query to specify the results, and then tell it to go to excel as the output.

3. If it is a repeating task, setup a report in reporting services. Your users would be able to export into a csv file from the report.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search