Violation of PRIMARY KEY constraint - seems to occur with replication??



Hi everyone,

I've got a major issue on a state production system that I need to
resolve in 24 hours. I have two servers running with Merge Replication,
and when editing web gui data, only one of them saves correctly
(performs a valid INSERT). The other server gives the following
exception anytime I try and do an INSERT:

sqlserver.jdbc.SQLServerException: Violation of PRIMARY KEY constraint
'PK__VARIABLE__164452B1'. Cannot insert duplicate key in object
'VARIABLES_LOG'.

I am stumped. This only happens on one server, and both servers have
exhibited this behaviour in the last 2 weeks. I am using SQL Server
2000 with the Microsoft SQL Server 2005 JDBC drivers v. 1.1. These
drivers state that they can be used with SQL Server 2000. I'm not sure
if the merge replication that I have setup might be causing this. Does
anyone have any insight on this??

Any help is greatly appreciated!!!

Claudio

.



Relevant Pages

  • Re: SBS 2003 and Replication Errors with Remote DC
    ... I just promoted the remote DC last week, so I still have time to solve the replication issues. ... Domain Controller Diagnosis ... Connecting to directory service on server alpha. ... Performing upstream analysis. ...
    (microsoft.public.windows.server.sbs)
  • Re: SBS 2003 and Replication Errors with Remote DC
    ... alpha server as soon as you can to get things going. ... A simple DNS replication test is to create a host record in the SBS server ... Domain Controller Diagnosis ...
    (microsoft.public.windows.server.sbs)
  • Re: SBS 2003 and Replication Errors with Remote DC
    ... I did make the changes that you suggested on the DNS of my alpha server and rebooted. ... I did run the simple DNS test that you suggested by adding a host record to my SBS server. ... A simple DNS replication test is to create a host record in the SBS server and wait till it shows up in the remote server. ...
    (microsoft.public.windows.server.sbs)
  • Re: How to Replicate an SQL Server 2000 Database
    ... Looking for a SQL Server replication book? ... actual server name) enterprise manager should associate the database with ...
    (microsoft.public.sqlserver.replication)
  • Re: How to Replicate an SQL Server 2000 Database
    ... Looking for a SQL Server replication book? ... actual server name) enterprise manager should associate the database with ...
    (microsoft.public.sqlserver.replication)