![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
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 |
#2
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |