Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Identity column - replication.

$
0
0

Just wondering if anyone could shed some light on the below error:

Explicit value must be specified for identity column in table 'tableName' either when IDENTITY_INSERT is set to ON or when a replication user is inserting into a NOT FOR REPLICATION identity column.

It's been driving me mad all day. I've done a little digging into these identity columns today and I think I understand them - Obviously not too well or this probably wouldn't be an issue.

I'm replicating a database to another using snapshot and the above error keeps popping up. This is 2008R2.

Do I need to somehow try and turn on identity_insert when replication is running for the subscriber or do I have to specify a value for each row of replicated data. Or have I got this all wrong?

Thanks again. Ryan


Viewing all articles
Browse latest Browse all 17268

Trending Articles



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