dbTalk Databases Forums  

Update Database Performance Question

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


Discuss Update Database Performance Question in the microsoft.public.sqlserver.dts forum.



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

Default Update Database Performance Question - 08-25-2005 , 10:43 AM






I have a Source and a Destination with the exact same structures. The
information in the Source Table for a given Key (example Customer) replaces
all of the information in the Destination Table for the Key.

Is it more effective to create a task to delete all the records for the
customer in the Destination Table and then Insert all the records in the
Source Table - or - create a task to Insert/Update/Delete the Destination
Table from the Source Table?

thanks



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

Default Re: Update Database Performance Question - 08-27-2005 , 03:13 AM






The answer I guess is "It depends". Your answer may be different to other
people's answer. Both methods will work but I would be inclined to follow
the UPDATE/INSERT/DELETE path. I cannot really think of a compelling
argument one way or the other. Give it a try and let us know how you get
on.

Allan

"cleo" <cleo (AT) misinformation (DOT) net> wrote

Quote:
I have a Source and a Destination with the exact same structures. The
information in the Source Table for a given Key (example Customer) replaces
all of the information in the Destination Table for the Key.

Is it more effective to create a task to delete all the records for the
customer in the Destination Table and then Insert all the records in the
Source Table - or - create a task to Insert/Update/Delete the Destination
Table from the Source Table?

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.