dbTalk Databases Forums  

How to do this?

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


Discuss How to do this? in the microsoft.public.sqlserver.dts forum.



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

Default How to do this? - 03-03-2006 , 02:31 PM






I am a newbie in SQL 2000 dts. I need to create a dts package to update the
data warehouse currently in the Sql server. There are two tables, DW1 and
DW2 in the data warehouse. The primary key is DW1ID and DW2ID and DW1ID is
a secondary key for the table DW2. The data warehouse consists of data from
several Sql data sources and those data sources are updated in different
time (I am talkng about months apart). I need to automate the update process
to the data warehouse when the sql data source is updated. The ideal process
should inclued but not limited to the following process:

1) Back up the data warehouse database
2) Delete records belong to the Sql data source from the DW1 (Cascade delete
is set up in the DW2)
3) Append records from Sql data source to DW1 and DW2
4) Notify someone when the process is completed (success or failure)

As for item 3, I need help to create a Sql loop on each record append to DW1
as the newly created DW1ID is used as a secondary key in DW2. Then I can
create a dts package for each of the Sql data source.

Thanks



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.