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

SqlBulkCopy issue with replication

$
0
0

I have a transaction replication between two servers running on SQL Server 2008 R2. When I insert rows into a table on the publisher everything is OK. When I insert rows into a table on the subscriber I'm getting the follwing error:

Cannot bulk copy into a table "TABLE_NAME" that is enabled for immediate-updating subscriptions

rom the following link: BulkCopy it looks as if the problem is related to the fact the we have to set FIRE_TRIGGERS on. I've tried to use SqlBulkCopy like this:

SqlBulkCopy(ConnectionString, SqlBulkCopyOptions.FireTriggers)

but I'm still getting the same error. What should I do?





Tsahi Bar


Viewing all articles
Browse latest Browse all 4054

Trending Articles



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