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

Trans. Replication failing -- "Cannot update identity column ..." -- unable to use sp_browsereplcmds to view statement

$
0
0

All, I'm trying fix an issue with transactional replication where replication monitor is showing the push to the subscriber is failing because of the error, "Cannot update identity column."  I've tried to use sp_browsereplcmds to pull up the command that's failing based on the xact_seqno but when I try that I get the error:

"

Number: 102, State: 1, Procedure: , LineNumber: 0, Server: , Source: .Net SqlClient Data Provider
Message: Incorrect syntax near '┻'.

"

I'd like to fix the issue without having to rebuild replication during a maintenance window.  I know you cannot publish tables with primary keys, but I'm wondering if dropping the identity column on this table might fix the issue.  I'm considering that but I would prefer to be able to pull the command that's trying to update the identity column, throw in SET IDENTITY_INSERT ON and remove the commands from the distribution database, but if that doesn't work I'm open to ideas of just dropping the primary key on the replicated table.  I think that should be fine.

Does anyone have any recommendations on how to view the command that's failing?

Or if dropping the primary key on the subscriber table would create issues with the publisher (since it is also the primary key)?

Or, know of any other ways in which to address this issue?  Thanks.



Viewing all articles
Browse latest Browse all 4054

Trending Articles



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