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

This operation conflicts with another pending operation on this transaction

$
0
0
We have a database on server1 which has a series of stored procedures that perform select and inserts into another database on a linked server on server2. The database on server2 is setup as a merge publication for replication externally. I have removed the publication from server2 and I can now run all the stored procedures successfully and it only takes approx 45 minutes to complete.

If I re-add the publication the process takes about 3 hours sends the SQL server cpu usage into overdrive and the procedures fail with:
 Msg 3970, Level 16, State 2, Procedure MSmerge_ins_B59B83C7DBBD4E82985EE7A62558E4EE, Line 31
This operation conflicts with another pending operation on this transaction. The operation failed

I think this is something to do with identity range settings on the publication, but I don't fully understand how I should be adjusting this. I also don't understand why it is also more demanding on server resources and takes so much longer

Thanks
Craig

Viewing all articles
Browse latest Browse all 4054

Trending Articles



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