something wrong with replication auto identity management


hi all,

i facing problem on publication database, updating identity check constraints fails on publisher.

i have 2 tables in publication database  --> book , book_log , book table has insert/update/delete log triggers book_log, both have identity(1,1) pks.

and users access server db_owner.

occasionally below error happens:

the insert failed. conflicted identity range check constraint in database 'library', replicated table 'dbo.book_log', column 'book_logid'. if identity column automatically managed replication, update range follows: publisher, execute sp_adjustpublisheridentityrange; subscriber, run distribution agent or merge agent. statement has been terminated. source: .net sqlclient data provider targetsite: void onerror(system.data.sqlclient.sqlexception, boolean) helplink.prodname: microsoft sql server helplink.prodver: 10.50.4000 helplink.evtsrc: mssqlserver helplink.evtid: 548 helplink.basehelpurl: http://go.microsoft.com/fwlink helplink.linkid: 20476 stacktrace: @ system.data.sqlclient.sqlconnection.onerror(sqlexception exception, boolean breakconnection) @ system.data.sqlclient.sqlinternalconnection.onerror(sqlexception exception, boolean breakconnection) @ system.data.sqlclient.tdsparser.throwexceptionandwarning(tdsparserstateobject stateobj)

my question is, have sql triggers execution context ?

also not able reproduce error on dev environment happens on production systems time time.



thanks,

is identity column managed automatically? triggers doing?


SQL Server  >  SQL Server Replication



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........