dbTalk Databases Forums  

Which Task to use for Updating T1 with T2

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


Discuss Which Task to use for Updating T1 with T2 in the microsoft.public.sqlserver.dts forum.



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

Default Which Task to use for Updating T1 with T2 - 01-19-2006 , 04:48 AM






Hello,

There is a Table T, which exists in two databases on different servers S1 and S2.
I want to update all columns of T in S2 with the contents of T in S1, with a
"Join" on identical Primary Key Columns.

What kind of DTS-Task can I use, or have I to write a kind of ActiveX-Task for
a task like this?

Thank You

Joachim

Reply With Quote
  #2  
Old   
bharat jariwala
 
Posts: n/a

Default RE: Which Task to use for Updating T1 with T2 - 01-19-2006 , 05:06 AM






For updating Table, you should use DataDriven Query Task.

In Queries Tab of DataDriven property window, you can write
INSERT/UPDATE/DELETE statement.

--
Regards
Bharat Jariwala



"Joachim Hofmann" wrote:

Quote:
Hello,

There is a Table T, which exists in two databases on different servers S1 and S2.
I want to update all columns of T in S2 with the contents of T in S1, with a
"Join" on identical Primary Key Columns.

What kind of DTS-Task can I use, or have I to write a kind of ActiveX-Task for
a task like this?

Thank You

Joachim


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

Default RE: Which Task to use for Updating T1 with T2 - 01-21-2006 , 05:19 AM



Hello Bharat,

Whilst this will work you need to be careful about the amount of rows you
are putting through the pipeline. The DDQ operates on each row 1*1. On
a sma;; rowset fine but larger ones will hurt.

SQL Server to SQL Server I may use OPENDATASOURCE() or a linkeds Server.


Allan


Quote:
For updating Table, you should use DataDriven Query Task.

In Queries Tab of DataDriven property window, you can write
INSERT/UPDATE/DELETE statement.

"Joachim Hofmann" wrote:

Hello,

There is a Table T, which exists in two databases on different
servers S1 and S2. I want to update all columns of T in S2 with the
contents of T in S1, with a "Join" on identical Primary Key Columns.

What kind of DTS-Task can I use, or have I to write a kind of
ActiveX-Task for a task like this?

Thank You

Joachim




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.