Answered Issues on replication

  • Friday, February 17, 2012 11:21 AM
     
     
    I have set up a transactional replication on my master tables. This master table’s in-turn populates data into history table using DML triggers. I need to replicate only master tables to my subscriber. What I can make out is that the triggers are automatically replicated when the table is replicated but identity column is not replicated as it is marked "Not for replication".

    The replication fails with an error saying 'Cannot insert explicit value for identity column in table 'XX' when IDENTITY_INSERT is set to OFF' and neither master nor history table on subscriber get populated.

All Replies