Primary Key Conflict Transactional Replication

  • Hi All,

    Please someone provide me the TSQL commands to find the command which is causing the Primary Key Violation error using Transaction Sequence Number.

    Thanks.

  • I'll give you the two tables and the proc to get them out.

    All the information you need is in the two tables. I've got a script that does this for me.

    Distribution.dbo.MSrepl_errors

    Distribution.dbo.MSrepl_commands

    EXEC sp_browsereplcmds @xact_seqno_start=@SeqNo, @xact_seqno_end=@SeqNo, @publisher_database_id =@publisher_db_id, @command_id=@cmdID

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply