all groups > sql server replication > april 2004 >
You're in the

sql server replication

group:

Selective replication direction



RE: Selective replication direction Paul Ibison
4/13/2004 6:06:03 AM
sql server replication: Renato
yes, -EXCHANGETYPE is a parameter of the merge agent so it applies to all the articles of that publication and there isn't the granularity in sp_addmergearticle to allow this per article.
I agree that partitioning into two publications would be suitable (simplest) here
Regards
Selective replication direction Renato Aranghelovici
4/13/2004 3:34:53 PM
Hi,

For a typical one publisher, many subscribers merge scenario, is it possible
for selected tables to replicate bi-directional, and others to replicate
uni-directional? How?
I am not sure if the direction (ExchangeType property) is fixed for the
whole subscription, or can be set at table level.
If not possible, what is the simplest solution? I think to make 2
publications, one for bidirectional and one for upload only. Other simpler
solution?

Thanks,
Renato

Re: Selective replication direction Michael Hotek
4/14/2004 1:44:14 AM
The tables requiring two-way data movement need to be in a different
publication than the ones requiring one way data movement. (There is no
bi-directional replication when using merge as it simply does not exist.)
This is because the ExchangeType option is set at a publication level.

[Completely unsupported and not really recommended option]
Now....... If you really don't want two publications, you can accomplish the
same thing by making some system modifications. First recognizing that
merge works through triggers. If those triggers do not fire, nothing is
logged into MSmerge_contents which means that change will NOT propagate.
There are three ways you can accomplish this.
1. Drop the merge triggers for the tables on the side that you don't want to
send changes back
2. Disable the same triggers as 1
3. Edit the same triggers as 1 and add a simple return command to the first
line.

My choice would be #3 as it leaves all of teh code intact, but essentially
renders it useless. However, it you reinitialize or apply service packs,
you may have to reapply any of these changes.

I don't recommend using this option since Microsoft and no one else will
support you. They may try to help, but you would be entirely on your own.

--

Mike
Principal Mentor
Solid Quality Learning
"More than just Training"
SQL Server MVP
http://www.solidqualitylearning.com
http://www.mssqlserver.com

Re: Selective replication direction Renato Aranghelovici
4/14/2004 10:35:54 AM
This is a really hot solution, and because I like risk :), I will use it.
No production environment yet, so nothing to damage.

Thank you,
Renato

[quoted text, click to view]

AddThis Social Bookmark Button