dbTalk Databases Forums  

Re: How to do a incremental data transfer ?

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


Discuss Re: How to do a incremental data transfer ? in the microsoft.public.sqlserver.dts forum.



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

Default Re: How to do a incremental data transfer ? - 09-01-2003 , 09:13 AM






Your source records should be identifiable by a Key value. You can then
move only records where the key is not in the destination.

How ?

1. Linked Server
2. Lookups
3. Trap INSERTS, DELETES, UPDATES using triggers and a trigger table.



--

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



"Bonnie" <bonnie (AT) sina (DOT) com> wrote

Quote:
I scheduled a dts package to transfer over 100, 000 records from source to
destination table everyday.
Data stored in this table are posted history data and won't be updated.
Everytime, the table must be
truncated before each transformation and the processing is very time
consuming. Any other way to
transfer only those newly added records in order to shorten the process ?

As there is a increment ID field in this table, I have an idea :
Transfer only records from source with ID > max(ID) in destination

Does sql server tables have row id or row no. ?





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.