Microsoft KB Archive/252372

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 17:15, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


Article ID: 252372

Article Last Modified on 3/14/2006



APPLIES TO

  • Microsoft SQL Server 7.0 Standard Edition



This article was previously published under Q252372

BUG #: 56275 (SQLBUG_70)

SYMPTOMS

If pull merge replication is set up using join filters in conjunction with login based dynamic filters as an intersection within the filter clause, the data on the publisher and subscriber may become unsynchronized.

CAUSE

The problem is that if the join filter uses the SUSER_SNAME function and if the merge task is using different logins for connecting to the Publisher and Subscriber, the merge agent does not expand the set of rows to be removed which then causes the non-convergence problem.

WORKAROUND

Run the pull merge agent on the subscriber with the same user context as the -PublisherLogin specified in the merge agent.

STATUS

Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

254561 INF: How to Obtain Service Pack 2 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0


For more information, contact your primary support provider.

MORE INFORMATION

In order to produce a result that is an intersection of a join filter and a dynamic filter, the merge article is set up with dynamic filters specified in the join filter clause. For example:

exec sp_addmergefilter @publication = N'PUB', @article = N't1',
   @filtername = N't1_t2', @join_articlename = N't2',
   @join_filterclause = N't1.ID = t2.ID and 't1.usertid = SUSER_SNAME()',
   @join_unique_key = 1
GO
                

With the preceding merge filter set up, if the PublisherLogin account is different from the user context under which the pull merge agent is running, when rows are deleted from table t2, the rows in table t1 that are connected to table t2 by join filter t1.ID=t2.ID are not removed.


Additional query words: join dynamic filters merge intersection convergence user synchronization

Keywords: kbbug kbfix KB252372