Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Task

Status
Not open for further replies.

mayu03

Programmer
Oct 3, 2003
91
0
0
US
I have 2 connection (conn1 and conn2) to the different sources.
I need to do the following logic:
1. Select data from conn1 based on pk
2.Compare the data to the data in conn2 based on pl
3.If data exists in conn2 update conn1 based on pk
Please help me with the task I should use in order to do this.
 
Hi,

DTS may not be necessary for what you are looking for. You could set up a linked server to Server 2 on Server 1, then create a stored procedure that checks data on the second server and inserts or updates data accordingly.

You can then schedule the execution of the stored procedure as a SQL Server job (or call it from DTS if you prefer). The key here is, a Transform Data task wouldn't necessarily be the best solution for data synchronization.

PS: Merge replication may also be worth taking a look at too.

Best Regards,
Joseph Sack, Author of "SQL Server 2000 Fast Answers for DBAs and Developers".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top