Hi,
Can anyone help me with my issue...
I have one (merge) publication (data are managed from, in my case, web application) with several subscribers (data are managed by PDA devices).
There are around 35 tables that need to be synchronized.
Because records in each of those tables can be managed in both publication and subscribers, for eachsp_addmergearticle, I've set "@article_resolver = N'Microsoft SQL Server Subscriber Always Wins Conflict Resolver'" because data collected from PDA are more relevant
that ones managed from web application, thus Subscribers always must win.
BUT when I sync. there is still conflicts that requires manually resolving (through "Microsoft Replication conflicts Viewer"). Normally, all I need to do is to "Submit Winner". All I need is that "submitting winner" to be automatically
because these kind of "situation" is normal in my application.
To be more specific, I'll put one scenario for one table (with values from one set of parameters):
Table settings in DB and in script from publication:
Table1 (NPID, ParamID, ParamValue)
exec sp_addmergearticle @publication = N'MyDatabase_Rep', @article = N'Table1', @source_owner = N'dbo', @source_object = N'Table1', @type = N'table', @description = N'', @creation_script = N'', @pre_creation_cmd = N'drop', @schema_option = 0x000000B208034FF1, @identityrangemanagementoption = N'auto', @pub_identity_range = 1000000, @identity_range = 1000, @threshold = 80, @destination_owner = N'dbo', @force_reinit_subscription = 1, @column_tracking = N'false', @article_resolver = N'Microsoft SQL Server Subscriber Always Wins Conflict Resolver', @subset_filterclause = N'', @vertical_partition = N'false', @verify_resolver_signature = 0, @allow_interactive_resolver = N'false', @fast_multicol_updateproc = N'true', @check_permissions = 0, @subscriber_upload_options = 0, @delete_tracking = N'true', @compensate_for_errors = N'false', @stream_blob_columns = N'false', @partition_options = 0
through web application I've put following values:
NPID = 98
ParamID = 299
ParamValue = 5.00000000
through one of the PDAs for the same parameter I've put following values:
NPID = 98
ParamID = 299
ParamValue = 35.00000000
According to the table setting in the replication that subscriber always wins I thought that ParamValue = 35.0000000 will overwrite ParamValue = 5.0000000 BUT values in Table1 was same and when I check "View conflicts" I've notice that there were conflict :"The same row was updated at both 'WM_EU - 7c67c309222d' and 'SERVER.MyDataBase'. The resolver chose the update from 'WM_EU - 7c67c309222d' as the winner." and I need to confirm "Submit Winner"...
All I need to do is to, somehow, set the replication to handle this conflicts automatically.
Thanks,
Stefan