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,
SQL Server > SQL Server Replication
Comments
Post a Comment