dbTalk Databases Forums  

Extract data from many OLTP database

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


Discuss Extract data from many OLTP database in the microsoft.public.sqlserver.dts forum.



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

Default Re: Extract data from many OLTP database - 06-05-2004 , 11:35 AM






You can do it like this if you want or you can create 10 DataPump tasks and
move the data that way. They can all be in the same package.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Tristant" <krislioe (AT) cbn (DOT) net.id> wrote

Quote:
Hi All,
I need to do ETL to pull data from 10 OLTP database into one Olap
database.
I do it by creating stored proc and call it from 'Execute SQL Task'.
from 'Execute SQL Task' => EXEC SP_UpdSalesman_Dim

=> Create Proc SP_UpdSalesman_Dim AS
Insert into Salesman_Dim
Select * from Server_1.Oltp_DB1.dbo.Salesman S1
Left Join Salesman_Dim S2 ON [S2.Keys] = [S1.Keys]
Where [S1.Keys] IS NULL

What is the best approach for this : should I create 10 Task like this ?
Or is it better I use Looping here and pass database name to the stored
proc
?

Thank you for any help,
Trist






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

Default Extract data from many OLTP database - 06-06-2004 , 02:36 AM






Hi All,
I need to do ETL to pull data from 10 OLTP database into one Olap database.
I do it by creating stored proc and call it from 'Execute SQL Task'.
from 'Execute SQL Task' => EXEC SP_UpdSalesman_Dim

=> Create Proc SP_UpdSalesman_Dim AS
Insert into Salesman_Dim
Select * from Server_1.Oltp_DB1.dbo.Salesman S1
Left Join Salesman_Dim S2 ON [S2.Keys] = [S1.Keys]
Where [S1.Keys] IS NULL

What is the best approach for this : should I create 10 Task like this ?
Or is it better I use Looping here and pass database name to the stored proc
?

Thank you for any help,
Trist




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.