dbTalk Databases Forums  

multiple transforms to one file

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


Discuss multiple transforms to one file in the microsoft.public.sqlserver.dts forum.



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

Default multiple transforms to one file - 03-01-2005 , 02:44 PM






I am trying to "clone" a few transforms in SQL7 from a copy of the original
database into the same export files. In other words point 2 different data
sources into the same export file. Can I do this within the same DTS
package?



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: multiple transforms to one file - 03-01-2005 , 03:01 PM






By Export file I presume you mean text file.

Personally I would export to two files then use COPY in an
ExecuteProcess task or if the data is the same in each transform then
simply create a view of the data (or statement) incorporating both sets
of data (UNION) and use that as the source.

Allan

"James" <jimcraig77 (AT) hotmail (DOT) com> wrote

Quote:
I am trying to "clone" a few transforms in SQL7 from a copy of the
original
database into the same export files. In other words point 2 different
data
sources into the same export file. Can I do this within the same DTS
package?


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

Default Re: multiple transforms to one file - 03-01-2005 , 03:14 PM



The data format is the same in each transform. I want to create a union
from both sources to the single text file.
Each source is a copy of the same database on the same SQL server.
I already have 2 seperate views into each of the databases, do I need to
consolidate them, or can both just transform to the same file?

James


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
By Export file I presume you mean text file.

Personally I would export to two files then use COPY in an
ExecuteProcess task or if the data is the same in each transform then
simply create a view of the data (or statement) incorporating both sets
of data (UNION) and use that as the source.

Allan

"James" <jimcraig77 (AT) hotmail (DOT) com> wrote in message
news:jimcraig77 (AT) hotmail (DOT) com:
I am trying to "clone" a few transforms in SQL7 from a copy of the
original
database into the same export files. In other words point 2 different
data
sources into the same export file. Can I do this within the same DTS
package?




Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: multiple transforms to one file - 03-01-2005 , 03:24 PM



OK So in one of the DBs DO

CREATE VIEW dbo.ConsolidatedDataView
AS
SELECT <col list> FROM <whatever>
UNION
SELECT <col list> FROM OtherDB.owner.<whatever>



"James" <jimcraig77 (AT) hotmail (DOT) com> wrote


Quote:
The data format is the same in each transform. I want to create a union
from both sources to the single text file.
Each source is a copy of the same database on the same SQL server.
I already have 2 seperate views into each of the databases, do I need to
consolidate them, or can both just transform to the same file?

James


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:%23UG1jEqHFHA.4032 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
By Export file I presume you mean text file.

Personally I would export to two files then use COPY in an
ExecuteProcess task or if the data is the same in each transform then
simply create a view of the data (or statement) incorporating both sets
of data (UNION) and use that as the source.

Allan

"James" <jimcraig77 (AT) hotmail (DOT) com> wrote in message
news:jimcraig77 (AT) hotmail (DOT) com:
I am trying to "clone" a few transforms in SQL7 from a copy of the
original
database into the same export files. In other words point 2 different
data
sources into the same export file. Can I do this within the same DTS
package?



Reply With Quote
  #5  
Old   
James
 
Posts: n/a

Default Re: multiple transforms to one file - 03-01-2005 , 03:27 PM



Excellent, thank you much!

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
OK So in one of the DBs DO

CREATE VIEW dbo.ConsolidatedDataView
AS
SELECT <col list> FROM <whatever
UNION
SELECT <col list> FROM OtherDB.owner.<whatever



"James" <jimcraig77 (AT) hotmail (DOT) com> wrote in message
news:jimcraig77 (AT) hotmail (DOT) com:

The data format is the same in each transform. I want to create a union
from both sources to the single text file.
Each source is a copy of the same database on the same SQL server.
I already have 2 seperate views into each of the databases, do I need to
consolidate them, or can both just transform to the same file?

James


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:%23UG1jEqHFHA.4032 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
By Export file I presume you mean text file.

Personally I would export to two files then use COPY in an
ExecuteProcess task or if the data is the same in each transform then
simply create a view of the data (or statement) incorporating both
sets
of data (UNION) and use that as the source.

Allan

"James" <jimcraig77 (AT) hotmail (DOT) com> wrote in message
news:jimcraig77 (AT) hotmail (DOT) com:
I am trying to "clone" a few transforms in SQL7 from a copy of the
original
database into the same export files. In other words point 2
different
data
sources into the same export file. Can I do this within the same
DTS
package?





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.