Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Manually syncing replicated table

$
0
0

Hi all,

I have a big table replicated to another database.  Unfortunately the replication giving errors now as someone has manually modified some entries in the replicated database.  I am seeing two errors:

1.  Some rows are inserted to source table but they exist target table.

2. Some edits in source table but the corresponding entries are missing in target table.  

I do not want to recreate the entire subscription as the table is quite big (>30m rows)

One of the error was this:  

Command attempted:

if @@trancount > 0 rollback tran

(Transaction sequence number: 0x0005F87F00000260001200000000, Command ID: 1)

Error messages:

The row was not found at the Subscriber when applying the replicated command. (Source: MSSQLServer, Error number: 20598)

Get help: http://help/20598

The row was not found at the Subscriber when applying the replicated command. (Source: MSSQLServer, Error number: 20598)

Get help: http://help/20598

Is there any way I can identify on which row the command is failing.

I went through some system tables to get data

 

But the result I got was not very useful

 

{CALL [dbo].[sp_MSupd__Customer] (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,?,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,NULL,NULL,NULL,0, NULL,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,?,0x00000200000000)}:

How can I find the exact row for which the insert/update is failing.

 


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>