dbTalk Databases Forums  

DTS Multiple Selects into One Extract

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


Discuss DTS Multiple Selects into One Extract in the microsoft.public.sqlserver.dts forum.



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

Default DTS Multiple Selects into One Extract - 07-14-2005 , 05:24 PM






I have two separate select statements to pull data. I want to load the raw
data into one Excel spreadsheet, into two separate sheets.

How can I do this in DTS? DTS doesn't appear to be able to transform data
into the same connection object because of duplicate object names.

Can DTS transform two extracts into two separate datasheets in one go? If
so, how?

(Ultimately, my problem has to do with linking one table to two different
tables (one-to-many) that have multiple results. It seems a "do while" type
of statement would work, but I know not how.)

I look forward to any help folks can provide.

Cheers,
Leslie

Reply With Quote
  #2  
Old   
Ed Enstrom
 
Posts: n/a

Default Re: DTS Multiple Selects into One Extract - 07-14-2005 , 08:52 PM






Leslie wrote:
Quote:
I have two separate select statements to pull data. I want to load the raw
data into one Excel spreadsheet, into two separate sheets.

How can I do this in DTS? DTS doesn't appear to be able to transform data
into the same connection object because of duplicate object names.

Can DTS transform two extracts into two separate datasheets in one go? If
so, how?

(Ultimately, my problem has to do with linking one table to two different
tables (one-to-many) that have multiple results. It seems a "do while" type
of statement would work, but I know not how.)

I look forward to any help folks can provide.

Cheers,
Leslie
Connections are made to workbooks, not worksheets.

Create a workbook with only one worksheet. Name the worksheet TitlePage or
something and put the name of the report in it.

Using the connection to the workbook:
Create TableA, which creates a worksheet named TableA
Pump data into TableA using first select statement
Using same connection, create TableB (creates another worksheet named TableB)
Pump data into TableB using second select statement

This will yield a workbook with three worksheets: TitlePage, TableA and TableA
Change the worksheet names a appropriate.


Reply With Quote
  #3  
Old   
Leslie
 
Posts: n/a

Default Re: DTS Multiple Selects into One Extract - 07-15-2005 , 04:14 PM



Thank you Ed, I will give that a try. Glad to know this IS available and
there are folks like you who know these things! :O)

Cheers,
Leslie

"Ed Enstrom" wrote:

Quote:
Connections are made to workbooks, not worksheets.

Create a workbook with only one worksheet. Name the worksheet TitlePage or
something and put the name of the report in it.

Using the connection to the workbook:
Create TableA, which creates a worksheet named TableA
Pump data into TableA using first select statement
Using same connection, create TableB (creates another worksheet named TableB)
Pump data into TableB using second select statement

This will yield a workbook with three worksheets: TitlePage, TableA and TableA
Change the worksheet names a appropriate.


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.