Thursday, 8 March 2012
conlict resolution question (merge repl)
in the conflict resolution dialog I get the 'winner' columns listed with
data and on the right 'loser' side I see this message instead of data:
"The error described above occurred when trying to insert or update this
data at the other server. If you ignore this conflict, you should resolve it
through other means. Consider logging the details of this conflict, then
sending the log entry to your system administrator"
My issue is that the subscriber machine ran out of hard drive space so all
the inserts (and some updates) were failing to get written to the
subscriber. Suprisingly sql server says thats a 'conflict'. I would rather
something like that 'fail' replication so its discovered sooner. Anyway:
1) I want to keep the update that occured at the publisher but I don't know
if thats the 'winner' or 'loser' here? its not clear. The winner side shows
data, and the loser side shows the message I pasted above. I have several of
these and I am not personally familiar with the db data so I can't tell from
looking at the data if its the 'updated' one or not. How do I know? (it sure
would be nice if the interface actually told you which machine's data you
were looking at along with 'winner' or 'loser')
Hello,
I have the same problem. I think it will be created by multiple
publications on the same table. Is this also you're replication
environment? I don't have resolved the problem at this time. If you do,
please can you send me your resolution?
djc wrote:
> windows 2000 / sql 2000
> in the conflict resolution dialog I get the 'winner' columns listed with
> data and on the right 'loser' side I see this message instead of data:
> "The error described above occurred when trying to insert or update this
> data at the other server. If you ignore this conflict, you should resolve it
> through other means. Consider logging the details of this conflict, then
> sending the log entry to your system administrator"
> My issue is that the subscriber machine ran out of hard drive space so all
> the inserts (and some updates) were failing to get written to the
> subscriber. Suprisingly sql server says thats a 'conflict'. I would rather
> something like that 'fail' replication so its discovered sooner. Anyway:
> 1) I want to keep the update that occured at the publisher but I don't know
> if thats the 'winner' or 'loser' here? its not clear. The winner side shows
> data, and the loser side shows the message I pasted above. I have several of
> these and I am not personally familiar with the db data so I can't tell from
> looking at the data if its the 'updated' one or not. How do I know? (it sure
> would be nice if the interface actually told you which machine's data you
> were looking at along with 'winner' or 'loser')
Saturday, 25 February 2012
Conflicts?
No , I have Sybase 12 and MSSQL server client running my machine and running
smoothly. Just check the availability of environment variables
\binn for SQL server
\bin for Sybase.
Otherwise using explorer go to the appropriate directories and execute the
client softwares.
Thanks
Hari
MCDBA
"dbush" <anonymous@.discussions.microsoft.com> wrote in message
news:793F0A29-CE6E-4625-A042-DBA33B104B40@.microsoft.com...
> Does anyone know if there is a conflict between MS SQL 7.0 and Sybase's
SQL client running on the same PC? Reason is I have a workstation that is
config'ed like this and the MS SQL Server Agent will not run. Gets the error
that a response from the Agent was not received in time.
Conflicts with Merge Replication
system.
Statler is the subscriber (also, remote distributor) and
EMGSQL1 is the publisher
The row was updated at Statler.Caryn but could not be updated
at emgsql1.caryn. Can not update Tlightbox because TlightboxFile
exists.
Column Conflight WinnerConflict Loser
lightbox_id19881988
member_id10531053
lb_nameCustomerCustwomer
create_dt5/13/2005 12:00:00 am5/13/2005 12:00:00 AM
last_mod_dt
expiration_dt8/11/2005 12:00:00 am8/11/2005 12:00:00 am
email_check{74434092-E95F-40B6-9211-99700DB
rowguidrowguid_valueidentical
the table definition for tlightbox is:
CREATE TABLE [dbo].[TLightBox] (
[lightbox_id] [int] IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL ,
[member_id] [int] NULL ,
[lb_name] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[create_dt] [datetime] NULL ,
[last_mod_dt] [datetime] NULL ,
[expiration_dt] [datetime] NULL ,
[email_check] [uniqueidentifier] NULL ,
[rowguid] uniqueidentifier ROWGUIDCOL NOT NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[TLightboxFile] (
[lightbox_id] [int] NOT NULL ,
[modeltalent_id] [int] NOT NULL ,
[rank] [int] NULL ,
[rowguid] uniqueidentifier ROWGUIDCOL NOT NULL
) ON [PRIMARY]
GO
These tables are on both servers.
Any Ideas?
Thanks
Dave
what is the relationship between TLightBox and TLightBoxFile?
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
"David Gresham" <gresham@.panix.com> wrote in message
news:d62p39$lks$1@.reader1.panix.com...
> I am seeing the following conflict message in a merge replication
> system.
> Statler is the subscriber (also, remote distributor) and
> EMGSQL1 is the publisher
> The row was updated at Statler.Caryn but could not be updated
> at emgsql1.caryn. Can not update Tlightbox because TlightboxFile
> exists.
> Column Conflight Winner Conflict Loser
> lightbox_id 1988 1988
> member_id 1053 1053
> lb_name Customer Custwomer
> create_dt 5/13/2005 12:00:00 am 5/13/2005 12:00:00 AM
> last_mod_dt
> expiration_dt 8/11/2005 12:00:00 am 8/11/2005 12:00:00 am
> email_check {74434092-E95F-40B6-9211-99700DB
> rowguid rowguid_value identical
>
> the table definition for tlightbox is:
> CREATE TABLE [dbo].[TLightBox] (
> [lightbox_id] [int] IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL ,
> [member_id] [int] NULL ,
> [lb_name] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [create_dt] [datetime] NULL ,
> [last_mod_dt] [datetime] NULL ,
> [expiration_dt] [datetime] NULL ,
> [email_check] [uniqueidentifier] NULL ,
> [rowguid] uniqueidentifier ROWGUIDCOL NOT NULL
> ) ON [PRIMARY]
> GO
>
> CREATE TABLE [dbo].[TLightboxFile] (
> [lightbox_id] [int] NOT NULL ,
> [modeltalent_id] [int] NOT NULL ,
> [rank] [int] NULL ,
> [rowguid] uniqueidentifier ROWGUIDCOL NOT NULL
> ) ON [PRIMARY]
> GO
>
> These tables are on both servers.
>
> Any Ideas?
> Thanks
>
> Dave
>
|||In article <ek417yCWFHA.2960@.TK2MSFTNGP15.phx.gbl>,
Hilary Cotter <hilary.cotter@.gmail.com> wrote:
>what is the relationship between TLightBox and TLightBoxFile?
>
I just looked at the tables in question and there is no
defined releationship set between them. The only relationship
defined for TlightBox was for another table called TMember
with MemberID as the relationship column.
>"David Gresham" <gresham@.panix.com> wrote in message
>news:d62p39$lks$1@.reader1.panix.com...
>
|||Just seeing if I had given you all the info you needed for
this question. This database is a legacy database where
the original developers are no longer around. There
are no fk's that would join the two tables in question.
Sincerely,
Dave Gresham
In article <ek417yCWFHA.2960@.TK2MSFTNGP15.phx.gbl>,
Hilary Cotter <hilary.cotter@.gmail.com> wrote:
>what is the relationship between TLightBox and TLightBoxFile?
>--
>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
>"David Gresham" <gresham@.panix.com> wrote in message
>news:d62p39$lks$1@.reader1.panix.com...
>
|||Your problem does not make a whole lot of sense. the best approach is to try
to repro it.
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
"David Gresham" <gresham@.panix.com> wrote in message
news:d6algu$st6$1@.reader1.panix.com...
> Just seeing if I had given you all the info you needed for
> this question. This database is a legacy database where
> the original developers are no longer around. There
> are no fk's that would join the two tables in question.
> Sincerely,
>
> Dave Gresham
>
> In article <ek417yCWFHA.2960@.TK2MSFTNGP15.phx.gbl>,
> Hilary Cotter <hilary.cotter@.gmail.com> wrote:
>
Conflicts how can it be possible
I am getting the conflict for the records with following
remark.
The row was updated at 'SERVER1.DATABASE1' but could not
be updated at 'SERVER2.DATABASE2'. Violation of PRIMARY
KEY constraint 'PK__TABLE04__5DF6A344'. Cannot insert
duplicate key in object 'TABLE04'.
This record is created in SERVER2 AND ALSO CHANGED IN
SERVER2. The replication was down and then it come up
with this error when the user have change on same record.
Can you please suggest what can be the reason.
Publisher have not change anything every change is done
by the supplier still it is in the conflict.
Your guidance will help me a lot.
Best regards
Sharad
Is it possible that you updated the primary key? This might cause this
problem.
You also might want to edit your update proc and comment out the section
where it updates the pk in the second portion of the update proc.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"Sharad" <niitmalad@.yahoo.co.in> wrote in message
news:06f901c4ec1e$5ed33310$a501280a@.phx.gbl...
> Dear Friends
> I am getting the conflict for the records with following
> remark.
> The row was updated at 'SERVER1.DATABASE1' but could not
> be updated at 'SERVER2.DATABASE2'. Violation of PRIMARY
> KEY constraint 'PK__TABLE04__5DF6A344'. Cannot insert
> duplicate key in object 'TABLE04'.
> This record is created in SERVER2 AND ALSO CHANGED IN
> SERVER2. The replication was down and then it come up
> with this error when the user have change on same record.
> Can you please suggest what can be the reason.
> Publisher have not change anything every change is done
> by the supplier still it is in the conflict.
> Your guidance will help me a lot.
> Best regards
> Sharad
Friday, 24 February 2012
Conflict with logins/usres when Importing databases
We have imported several databases from an old SQL Server 2000 deployment in a SQL Server 2005 instance. After the installations we have check that the import doesn't create the logins associated with the users nad now it seems impossible to create "manually" the login. What should be do? Re-import the database after having created the login?
Thanks
You should still be able to create the login using CREATE LOGIN and then run the system proc
sp_change_users_login to map the existing users to the newly created login.
Reimporting the database will probably not work as the SIDs of the new logins will not match those of the old logins.
HTH.
|||Effectively, we have been able to create the login but we are unable to associate it to the user using the the "User Properties". The field "Login" appears empty and disabled, so there is no way to assign a user from this screen.
Reading your answer I understand that I can map the users to the newly created logins using the sp_change_users_login function. It's true? Could you send me a sample of use of this function? How should we execute it? (We are SQL Server newbies coming from Oracle world......)+
Thanks
|||
I assume you imported only your user-database probably using import wizard or something. Security information (users and logins) is stored in 'master' database in SQL Server world. You have to transfer these information from your old database to new one.
Check this out.
How to transfer logins and passwords between instances of SQL Server
http://support.microsoft.com/kb/246133/en-us
|||sample:sp_change_users_login 'AUTO_FIX', 'some_login'
|||Check the information in Books Online which will give you a full explanation of the options open to you:http://msdn2.microsoft.com/en-us/library/ms174378.aspx
Essentially to map an existing user Bob to a new login of Bob you're looking at running:
sp_change_users_login 'Update_One', 'Bob', 'Bob';
Hope this helps;
Conflict Viewer usage for past conflicts
When conflicts arise, we can use the conflict viewer. We have checked the
box that says to log them for future use. Help says they go to the system
tables.
I am trying to find conflict information from several replications ago, but
can't find them. Is there a certain system table they go to?
Thanks,
Steve
Steve,
the tables that maintain conflict information are:
conflict_<PublicationName>_<ArticleName>_usertable name and
MSmerge_delete_conflicts.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
Conflict Viewer included with MSDE 2000 Release A?
Does anyone have the definitive answers to the following?
- Is Conflict Viewer supposed to be included with MSDE 2000 Rel A?
- Was it included in versions of MSDE prior to Rel A (my research has indicated that it was)?
- Is Conflict Viewer redistributable (hopefully there's a merge module somewhere?!)
- Does any other MS product apart from SQL Server install the Conflict Viewer (we have observed that certain machines that don't have SQL Server installed still have the conflict viewer...)?
Just for more information, our scenario is as follows:
- SQL Server 2000 database server, set with a publication allowing anonymous pull subscriptions, and articles set up to allow interactive conflict resolution.
- MSDE 2000 Rel A clients, with anonymous pull subscriptions to the server. When an on-demand synchronisation is attempted, we get the following message - "the process failed to
get information about the interactive resolver component from the
registry".
- If the files under Program Files\Common Files\Microsoft Shared\Database Replication are manually copied across and registered, it all works.
There's other posts asking similar questions in the replication discussion group, from Tanya Milanova and markeboy, but the answers given don't answer the question about redistribution of the component...
Cheers, Jim
Conflict Viewer as well as all the other tools for setting up and
maintaining replication on SQL Server 2000 are part of Enterprise Manager
and are not (and never have been) part of the MSDE distribution. The SQL
Server 2000 client tools (EM) cannot be legally redistributed.
Jim
"Jim Kirton" <JimKirton@.discussions.microsoft.com> wrote in message
news:EC5C41EB-AACB-4642-B57B-81C343DC8DE5@.microsoft.com...
> It seems that installing MSDE 2000 Release A does not install the conflict
viewer, and therefore if a subscription is set to allow interactive conflict
resolution at the client, it will not work...
> Does anyone have the definitive answers to the following?
> - Is Conflict Viewer supposed to be included with MSDE 2000 Rel A?
> - Was it included in versions of MSDE prior to Rel A (my research has
indicated that it was)?
> - Is Conflict Viewer redistributable (hopefully there's a merge module
somewhere?!)
> - Does any other MS product apart from SQL Server install the Conflict
Viewer (we have observed that certain machines that don't have SQL Server
installed still have the conflict viewer...)?
> Just for more information, our scenario is as follows:
> - SQL Server 2000 database server, set with a publication allowing
anonymous pull subscriptions, and articles set up to allow interactive
conflict resolution.
> - MSDE 2000 Rel A clients, with anonymous pull subscriptions to the
server. When an on-demand synchronisation is attempted, we get the following
message - "the process failed to
> get information about the interactive resolver component from the
> registry".
> - If the files under Program Files\Common Files\Microsoft Shared\Database
Replication are manually copied across and registered, it all works.
> There's other posts asking similar questions in the replication discussion
group, from Tanya Milanova and markeboy, but the answers given don't answer
the question about redistribution of the component...
> Cheers, Jim
Conflict Viewer hangs
MS SQL 2k EE SP3a, merge replication.
After long time Conflict Viewer began to hang when viewing conflicts on some
articles (not on all). There is no waiting locks. Workload is minimal.
What's wrong?
Thanx in advance.
I've run it under debugger and found that it runs an infinite loop in the
sqloledb.dll
No commands sent to server.
Guys from MS - whats wrong?
"Ray D" wrote:
> Hello, All!
> MS SQL 2k EE SP3a, merge replication.
> After long time Conflict Viewer began to hang when viewing conflicts on some
> articles (not on all). There is no waiting locks. Workload is minimal.
> What's wrong?
> Thanx in advance.
Conflict Viewer error:
Nothing more and of course, no conflict viewer...
Any idea how to fix this?
Michael
I am having the same issue. Anybody aware of this.
thanks
"AlohaMike" wrote:
> Un unexpected error occurred while trying to launch the Conflict Viewer.
> Nothing more and of course, no conflict viewer...
> Any idea how to fix this?
> Michael
Conflict tables
We are creating merge replication.
Is there any way to make the conflict tables to be create
in another database then the publisher database?
or to move them after creation.
Many Thanks for reply.
No, I don't think the conflict tables can be moved.
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"DIRYU" <anonymous@.discussions.microsoft.com> wrote in message
news:653f01c49336$0acd99e0$a301280a@.phx.gbl...
> Hello,
> We are creating merge replication.
> Is there any way to make the conflict tables to be create
> in another database then the publisher database?
> or to move them after creation.
>
> Many Thanks for reply.
Conflict tables
We are creating merge replication.
Is there any way to make the conflict tables to be create
in another database then the publisher database?
or to move them after creation.
Many Thanks for reply.No, I don't think the conflict tables can be moved.
--
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"DIRYU" <anonymous@.discussions.microsoft.com> wrote in message
news:653f01c49336$0acd99e0$a301280a@.phx.gbl...
> Hello,
> We are creating merge replication.
> Is there any way to make the conflict tables to be create
> in another database then the publisher database?
> or to move them after creation.
>
> Many Thanks for reply.
CONFLICT TABLES
I am dealing with merge replication.
Is there any option(query) to view the lattest conflict records(for current
date)
for all the conflicted tables?
Thanks,
Soura.
You can query the conflict tables directly on the publisher and sort by
MSrepl_create_time desc. You can view conflicts using the conflict viewer,
but they will be presented in the order they occur, i.e. the earliest will
be first.
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
"SouRa" <SouRa@.discussions.microsoft.com> wrote in message
news:3398E5D9-EDA6-460F-B9C3-7921CF7DDFF5@.microsoft.com...
> Hi,
> I am dealing with merge replication.
> Is there any option(query) to view the lattest conflict records(for
current
> date)
> for all the conflicted tables?
> Thanks,
> Soura.
>
conflict tables
I would very much appreciate any help regarding this problem. In short
again, when there are no conflict resolvers, an update of the same row
in the publisher and subscriber creates an entry in the conflict
table. But, when I use say datetime (Later wins) conflict resolver, no
such entry is found in the conflict table. Is there a way, one could
use the resolvers and at the same time have the conflict listings in
the table for the record?
Thanks in advance!
Jane.
jane201315@.yahoo.com (Jane) wrote in message news:<d7f9b5c5.0407071216.29d074d3@.posting.google. com>...[vbcol=seagreen]
> Hi Hilary,
> I am using a push subscription. So, the conflict tables should be
> populated on the publisher. They do get populated when I do not use
> the default resolvers. But when I do use the resolvers, and say change
> the same value in a row on the publisher and the subscriber, the
> conflict is not recorded but is resolved as per the default resolver,
> in my case the datetime(later wins) resolver.
> Any idea why it does not record this in the conflict tables?
> I appreciate your help!
> Thanks,
> Jane.
> "Hilary Cotter" <hilaryk@.att.net> wrote in message news:<#9aZk6CZEHA.1448@.TK2MSFTNGP12.phx.gbl>...
do you have a datetime column in this table? You must have one for this to
work.
"Jane" <jane201315@.yahoo.com> wrote in message
news:d7f9b5c5.0407121308.2f5c4d9@.posting.google.co m...
> Hi,
> I would very much appreciate any help regarding this problem. In short
> again, when there are no conflict resolvers, an update of the same row
> in the publisher and subscriber creates an entry in the conflict
> table. But, when I use say datetime (Later wins) conflict resolver, no
> such entry is found in the conflict table. Is there a way, one could
> use the resolvers and at the same time have the conflict listings in
> the table for the record?
> Thanks in advance!
> Jane.
>
> jane201315@.yahoo.com (Jane) wrote in message
news:<d7f9b5c5.0407071216.29d074d3@.posting.google. com>...[vbcol=seagreen]
news:<#9aZk6CZEHA.1448@.TK2MSFTNGP12.phx.gbl>...[vbcol=seagreen]
kind of[vbcol=seagreen]
but[vbcol=seagreen]
and[vbcol=seagreen]
of[vbcol=seagreen]
the[vbcol=seagreen]
|||Hi Hilary,
I do have a datetime column, I have set it up as the column to be used
for datetime(Later wins) conflict resolver. It works fine. But without
the resolver I do find conflicts in my conflict table. But with the
resolver set, my conflict table is empty even when the conflicts are
being created.
Any help is greatly appreciated!
Thanks in advance!
Jane.
"Hilary Cotter" <hilaryk@.att.net> wrote in message news:<#xRwAXOaEHA.2408@.tk2msftngp13.phx.gbl>...
> do you have a datetime column in this table? You must have one for this to
> work.
> "Jane" <jane201315@.yahoo.com> wrote in message
> news:d7f9b5c5.0407121308.2f5c4d9@.posting.google.co m...
|||"Jane" wrote:
> Hi Hilary,
> I do have a datetime column, I have set it up as the column to be used
> for datetime(Later wins) conflict resolver. It works fine. But without
> the resolver I do find conflicts in my conflict table. But with the
> resolver set, my conflict table is empty even when the conflicts are
> being created.
> Any help is greatly appreciated!
Hi Jane!
Did you ever find any solution to your problem? I have the same situation here. I'm using msde merge pull replication and I cannot find data in the conflict table. However, unlike you, even if I try to remove the conflict resolver (datetime, later wins),
I still can't see the log. Conflict table does exists but it remains empty, no matter what I do.
I would appreciate any help.
Ann
Conflict table Problem
Hi All,
I Want to know the following
1) when are the conflict tables in Merge replication created and are they dropped automatically after certain duration or do they exists once created?
2) data for how many days exist on the conflict tables.
Lindly reply even for one question its very urgent for me
Thanks in advance to all u helpfull people out there
1. MSmerge_conflicts_info table is created when you create the publication. The conflict tables for each article are created in the publication database, subscription database, or both (the default), depending on the value specified for the @.conflict_logging parameter of sp_addmergepublication. Each conflict table has the same structure as the article on which it is based, with the addition of the origin_datasource_id column. The Merge Agent deletes data from the conflict table if it is older than the conflict retention period for the publication, which is specified using the @.conflict_retention parameter of sp_addmergepublication (the default is 14 days).
2. The Merge Agent deletes data from the conflict table if it is older than the conflict retention period for the publication, which is specified using the @.conflict_retention parameter of sp_addmergepublication (the default is 14 days).
hope that helps
Conflict table Problem
Hi All,
I Want to know the following
1) when are the conflict tables in Merge replication created and are they dropped automatically after certain duration or do they exists once created?
2) data for how many days exist on the conflict tables.
Lindly reply even for one question its very urgent for me
Thanks in advance to all u helpfull people out there
1. MSmerge_conflicts_info table is created when you create the publication. The conflict tables for each article are created in the publication database, subscription database, or both (the default), depending on the value specified for the @.conflict_logging parameter of sp_addmergepublication. Each conflict table has the same structure as the article on which it is based, with the addition of the origin_datasource_id column. The Merge Agent deletes data from the conflict table if it is older than the conflict retention period for the publication, which is specified using the @.conflict_retention parameter of sp_addmergepublication (the default is 14 days).
2. The Merge Agent deletes data from the conflict table if it is older than the conflict retention period for the publication, which is specified using the @.conflict_retention parameter of sp_addmergepublication (the default is 14 days).
hope that helps
Conflict table cleanup interval
Rerunning snapshot should not be cleaning the tables.
@.conflict_retention governs how long the data will be kept in these tables before purging.
|||If I have data in the conflict tables and then execute the snapshot SQL Agent job the conflict tables are cleaned out. I have the @.conflict_retention value set to 90 days.The publication is a filtered merge publication.|||
Sorry I missed your earlier comment that this was SQL Server 2000.
This is a known issue in SQL Server 2000 and has been fixed in SQL Server 2005.
Conflict table cleanup
Is there a process that automatically cleans the conflict tables?
I have a merge publication with publisher & distributer running on same
machine. This is SQL 2K and W2K host. The clients are push subscription.
I viewed several conflicts last week ( Friday) and postponed resolving them.
There were about 300 conflicts and I didn't view them all.
Today when I went to view them, EM told me that 'no conflicts table'.
Is there some automatic clean of the conflict tables?
Do conflicts get purged when re-initializing all client?
Thanks,
bruce
Yes we do cleanup the rows when the subscription is re-initialized, also
the conflict rows are deleted when we manually resolve it from the conflict
resolver.
thanks
gopal
|||Bruce,
This is not a cleanup, but a wipe out! Your problem could be related to the
fact that the Snapshot Agent may be running automatically.
Everytime this agent runs the conflict tables are dropped and recreated
(they say this is by design), therefore you will lose any conflicts that
were there before.
Raj Moloye
Conflict Table - What does this error mean? Does the Conflict get cleared ?
employs horizontal/vertical filters, the other for admins with no
filters. I noticed over a period of time records going missing and when
I checked my conflict tables I received the following:
"The same column(s) of the same row was updated at both 'ServerA' and
'user - -129404259'. The resolver chose the update from 'ServerA' as
the winner."
1. Can someone explain what exactly this means and how I can avoid it?
The MS explaination of "Changes are made to the same column(s) in the
same row (using INSERT, UPDATE or DELETE statements) in more than one
copy, with column-level conflict tracking in effect." isn't that clear
to me.
2. Do the Conflict Tables every get cleared. For example, if I had an
issue 1 month ago and didn't check my conflict tables is there any
chance they could have been cleared. Reason I'm asking is that I have
records which went missing over a couple of months back and there's no
record in the conflicts table.
Thanks.
Hello Ciaran,
To understand the meaning of the error message, you need to understand how
Merge Replication works. Please read the following topic:
How Merge Replication Works
http://msdn.microsoft.com/library/de...us/replsql/rep
ltypes_30z7.asp
Please also refer to the "Microsoft Replication Conflict Viewer, Merge
Publication" topic and "Microsoft Replication Conflict Viewer, Updatable
Subscriptions" topic in SQL books online(BOL)
Update conflict happens when the same data is changed at two locations. The
message means Update conflict happened. Conflicts are automatically
resolved using the conflict resolver initially selected when the article
was created. As conflicts are resolved during synchronization, the data
from the losing row is written to a conflict table. The Replication
Conflict Viewer allows you to review these conflict records and,
potentially, modify your data.
When you resolve a conflict using Replication Conflict Viewer, you can
choose to accept the original resolution or submit an update to the data
based on the winning or losing row. In each instance, the logged conflict
row is deleted from the conflict table. Thereafter, you should periodically
review conflicts to help reduce the size of the conflict tracking tables.
When creating a new merge publication using sp_addmergepublication, you can
specify the conflict retention period using @.conflict_retention parameter.
Please refer to the following information in the sp_addmergepublication
topic in BOL:
[@.conflict_retention = ] conflict_retention
Specifies the retention period, in days, for which conflicts are retained.
conflict_retention is int, with a default of 14 days before the conflict
row is purged from the conflict table.
That is, by default, the conflict retention period is 14 days. The conflict
row is purged from the conflict table after 14 days.
I hope above information is helpful.
Sophie Guo
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
================================================== ===
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
================================================== ===
This posting is provided "AS IS" with no warranties, and confers no rights.
|||Thanks for the reply Sophie, this explains why the conflict table was
being cleared.
Regarding the conflict happening I still can't understand why this is
happening or more importantly what I can do to fix it. I do have an
INSTEAD OF UPDATE/INSERT Trigger on the table I'm syncing with and my
only guess is that this is causing the conflict to occur.
Any ideas on what type of issues can cause this conflict or a pointer
to some samples
is much appreciated.
|||Hello Ciaran,
What replication did you create? Are both sides trying to update the same
table when the conflict occurs? If both 'ServerA' and 'user - -129404259'
try to update the same table at the same time, this behavior is normal.
If the issue occurs although there are no updates on both sides, to isolate
the issue, I recommend you perform the following steps:
1. Create a new test database.
2. Create the related tables in the new database and insert some data into
it.
3. Create a new replication locally and check if you can reproduce the
issue.
If you can reproduce the issue, please post here the detailed steps and the
related data. I will check if I can reproduce the issue on my side.
Please know that replication issues tend to be very complex and hard to
troubleshoot in newsgroups. If you need further assistance, I recommend
that you open a Support incident with Microsoft Customer Service and
Support (CSS) so that a dedicated Support Professional can work with you in
a more timely and efficient manner. If you need any help in this regard,
please let me know.
For a complete list of Microsoft Product Support Services phone numbers,
please go to the following address on the World Wide Web:
<http://support.microsoft.com/directory/overview.asp>
If you are outside the US please see http://support.microsoft.com for
regional support phone numbers.
If anything is unclear, get in touch.
Sophie Guo
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
================================================== ===
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
================================================== ===
This posting is provided "AS IS" with no warranties, and confers no rights.
Conflict Resolution: Is defining local subscription enough: How to get log of lost record.
I am very much thankful to you all for providing much needed help, and
once again I am at the group with my query. In my replication
implementation in which I have around 100 subscriber I need to decide
what conflict resolution policy should be employed.
We, in our implementation just want that publisher always wins in case
if there is any conflict. Is it enough to create a local subscription
to acheieve this.
Which will ensure that in case of any conflict with the publisher
publisher always wins the conflict.
Also we want that losing party should get log of inforamtion about the
lost record, is there any way to acheive this?
Can you define what you mean by a local subscription?
The best way to alert the user of conflicts is to use the com object
C:\Program Files\Common Files\Microsoft Shared\Database
Replication\WZCNF.DLL
This will display a list of the conflicts. You will then have to poll for
them and send out alerts.
Subscriptions managed by Windows Synchronization Manager using the
interactive resolved will allow the user to manage the conflict when WSM
runs.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"Ruchir" <ruchirdhar@.gmail.com> wrote in message
news:88216eb7.0501172243.6e17e067@.posting.google.c om...
> Hello All,
> I am very much thankful to you all for providing much needed help, and
> once again I am at the group with my query. In my replication
> implementation in which I have around 100 subscriber I need to decide
> what conflict resolution policy should be employed.
> We, in our implementation just want that publisher always wins in case
> if there is any conflict. Is it enough to create a local subscription
> to acheieve this.
> Which will ensure that in case of any conflict with the publisher
> publisher always wins the conflict.
> Also we want that losing party should get log of inforamtion about the
> lost record, is there any way to acheive this?
Conflict Resolution: Is defining local subscription enough: How to get log of lost record.
to do anything to achieve this.
To get notification of a conflict, you could create a
polling routine (there's no alert that I know of).
HTH,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
hi Paul,
Thanks for you reply, I have few more queries
1. Where is this conflict information specially the losing row information is stored, at the publisher side or at the subscriber side? if losing row information is maintained at the publisher side is there any way so that we can store this information at the publisher side.
2. As you talked about creating a polling routine to get notification of conflict, in my implementation I just want a log file which contain information about the losing row nothing else, will the polling routine you are referring to can do the same and alsoI have not much information about how to write polling routine can you throw some light on it?
regards.
Ruchir.
Quote:
Publisher always wins is the default, so you don't need
to do anything to achieve this.
To get notification of a conflict, you could create a
polling routine (there's no alert that I know of).
HTH,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
conflict_<PublicationName>_<ArticleName>_usertable name
and
MSmerge_delete_conflicts
at the publisher.
The polling routine would be not much more than a job
that runs regularly and does a select from this table,
then sends the results in an email as an attachment. The
origin_datasource column could be used to determine the
correct recipient.
HTH,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)