Groups | Blog | Home
all groups > sql server replication > february 2007 >

sql server replication : SQL05 Merge Publication filtering issue


Microsoft News Groups
2/5/2007 5:23:31 PM
Hi All,

I am using a merge pull replication with the problem shown in the scenario
below:

1) Organisation 'A' is added to tblOrganisations on the "server"
2) "user" synchronises and does not add these organisations because the
filter restricts the subscription to only those oganisations that are
clients from a linking table
3) server database updated to add organisation 'A' to the users list of
clients
4) client synchronises again and finds the following:
the new row from the linking table has been synchronised
the organisation referred to in the linking table has NOT been
synchronised.


I now understand that this is because the merge handler believes (rightly I
guess) that there have been no changes to the Organisations table since the
last download. However the filter conversely indicates that there is new
information

SELECT <published_columns> FROM [dbo].[tblOrganisations] WHERE
convert(nchar, OrganisationID) = HOST_NAME() OR OrganisationID IN

(

SELECT ClientID

FROM tblProviderClients_tempR1

WHERE convert(nchar, ProviderID) = HOST_NAME()

)

I can prove my case by changing the detail of any field in Organisation A -
the next time replication occurs it makes the correct decision based on the
filter.


If this is "acting as intended" then how should I ensure that changes
affecting the filter criteria when no other data has changed actually merges
the data I need? I'm guessing this is fairly newbie....

cheers,

Paul

Hilary Cotter
2/6/2007 11:17:59 AM
I think what you need to do is implement a join filter. It is unclear to me
from what you have described that you are not using join filters.


--
Hilary Cotter

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

Paul Devenney
2/6/2007 11:33:53 AM
*bump*


[quoted text, click to view]

Paul Devenney
2/9/2007 10:14:46 AM
I am indeed utilising join filters to link down the tree from organisations.
However, it's the organisations filter that does not quite work as I would
hope - as included below.

P

[quoted text, click to view]

AddThis Social Bookmark Button