dbTalk Databases Forums  

Exporting data into mutliple tabs in Excel

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Exporting data into mutliple tabs in Excel in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Elise
 
Posts: n/a

Default Exporting data into mutliple tabs in Excel - 04-04-2006 , 04:06 AM






Ladies and gentlemen,

I have a question for you. I want to export data from an SQL db into Excel.
I want to execute multiple sql statements in the same dts package. (By now
your thinking: "That's easy...") But I want the results to be in different
tabs (sheets) in the same excel workbook.. (For instance result from query A
in tab A and so on).

Is this possible? Is there an easy way of doing this?

I'm quite new to dts. I've just gotten past the whole "using the wizard"
thing. Go easy on me.

Thank you for your help!

Cheers,
Elise



Reply With Quote
  #2  
Old   
Elise
 
Posts: n/a

Default Re: Exporting data into mutliple tabs in Excel - 04-04-2006 , 07:33 AM






Hi,

...I think I figured it out...

It seems to be a "newbie" question that one. BUT in case anyone of you
should be wondering, you can easily solve that one by:

- Adding new "Transform Data Tasks" between your connections (the SQL server
and the Excel sheet)
- Adding different SQL statements for your "Source" in each of the
connections
- Creating new tables for your "Destination" for each of them

The results of the different "Transform Data Tasks" then appears in
different tabs in the same spreadsheet.

One important thing is to remember to set the sequence in "Workflow
properties". That avoids several task competing for the connection at the
same time.

If anyone has suggestions for a more elegant solution, please let me know.

Thanks,

Elise (..learning..)

"Elise" <elise.bakke (AT) gmail (DOT) com> wrote

Quote:
Ladies and gentlemen,

I have a question for you. I want to export data from an SQL db into
Excel. I want to execute multiple sql statements in the same dts package.
(By now your thinking: "That's easy...") But I want the results to be in
different tabs (sheets) in the same excel workbook.. (For instance result
from query A in tab A and so on).

Is this possible? Is there an easy way of doing this?

I'm quite new to dts. I've just gotten past the whole "using the wizard"
thing. Go easy on me.

Thank you for your help!

Cheers,
Elise





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.