Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
parikhm3
Starting Member
12 Posts |
Posted - 2007-07-23 : 16:02:44
|
how do i write a sync procedure that syncs both tables and ensures that Table_2 keeps all services that are listed in Table_1how do i write a procedure for the sync between both tables, and put this procedure into the packageso basically there have to be two sync parts: First is INSERT of what is not yet existing, second one is UPDATE on the appropriate attributes.How would i write this sync procedure? |
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2007-07-23 : 16:03:55
|
if exists (desired resultset)begin ...updateend elsebegin ...insertend_______________________________________________Causing trouble since 1980blog: http://weblogs.sqlteam.com/mladenp |
 |
|
X002548
Not Just a Number
15586 Posts |
|
|
|
|