Arni06


Hi all,

here is the context of our problem:

- Publisher :

version SQL Server 2005 SP2

table in SQL Server 2000 (80) compatibility level

publication in SQL Server 2000 compatibility level

- Distributor : SQL Server 2005 SP2

- Subscriber : SQL Server 2000 SP4 + hotfixes (version 8.00.2187)

There is only one article in our publication (a simple table with a GUID and a nvarchar(50) columns), and we have left the default resolver.

1 - The first synchronization of the subscription is successfully completed, and it is the same for the different updates/inserts/deletes or conflicts.

2 - Then we change the Resolver of our article by our own COM-Based Custom Resolver (developped in C# 2.0). This resolver only change the default behaviour: the subscriber always win (this is for a test, in the future we will have a complex business logic). All the synchronizations works fine and do what we want in the conflicts.

3 - We rollback the resolver to the default one... and here is the problem!

The synchonizations stop to work correctly. For all of them we've got the same error:

Code Snippet
Replprov.dll , 2007/09/25 14:26:07.591, 4000, 16890, S1, ERROR: ErrNo = 0x80045017, ErrSrc = <null>, ErrType = 8, ErrStr = The schema script '
declare @cmd nvarchar(1000)
set @cmd='exec sys.sp_MSchangearticleresolver @article_resolver=@ar, @resolver_clsid=@rc, @artid=@ai, @resolver_info=@ri'
exec dbo.sp_executesql @cmd, N'@ar> nvarchar(255),@rc nvarchar(40),@ai uniqueidentifie..." mailto:N @ar">N'@armailto:N'@ar">N'@ar</A< A>> nvarchar(255),@rc nvarchar(40),@ai uniqueidentifie...

It is no more possible to synchronize this subscription... Any remark will be helpfull cause we did not find anything on the net concerning this error.

Thanks a lot!




Re: Error while changing Custom Resolver between 2005 Publisher and 2000 Subscriber

Thorsten Ueberschaer


hello

we had the same context and the same probleme some months ago.

the problem is, that sql2000 don¡¯t support some of the new resolver (in our case the "Later Wins")

the reason (in our case) was very easy: the sys.sp_MSchangearticleresolver don¡¯t exists in the subscriber db

you have to create a empty procedure (only BEGIN ... END)

be carefull: you have to create a user with name sys, after this you can create SYS.sp_MSchangearticleresolver

bye

Thorsten Ueberschaer






Re: Error while changing Custom Resolver between 2005 Publisher and 2000 Subscriber

Arni06

Thanks a lot Thorsten !

Your post was the solution to our problem !!!