SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


cannot bulk copy into a table 'tablename" that is enabled for immediate updating


cannot bulk copy into a table 'tablename" that is enabled for immediate updating

Author
Message
iwegbue3
iwegbue3
SSC Journeyman
SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)

Group: General Forum Members
Points: 76 Visits: 28
Hello Experts,

I have a Transactional replication setup with updateable subscription. I tried bulk copying data from the subscriber down to the Publisher and it throws up the error message, "Cannot bulk copy into a table 'tablename" that is enabled for immediate updating.

Please expert help is needed.

Thanks
noeld
noeld
SSC-Insane
SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)

Group: General Forum Members
Points: 23578 Visits: 2048
iwegbue3 (7/5/2010)
Hello Experts,

I have a Transactional replication setup with updateable subscription. I tried bulk copying data from the subscriber down to the Publisher and it throws up the error message, "Cannot bulk copy into a table 'tablename" that is enabled for immediate updating.

Please expert help is needed.

Thanks


Can you describe the steps you followed?
What exactly did you do when you said: "I tried bulk copying data from the subscriber down to the Publisher" ?


* Noel
iwegbue3
iwegbue3
SSC Journeyman
SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)

Group: General Forum Members
Points: 76 Visits: 28
Hello Experts,

I have a Transactional replication setup with updateable subscription. I tried bulk copying data from the subscriber down to the Publisher and it throws up the error message, "Cannot bulk copy into a table 'tablename" that is enabled for immediate updating.

Please expert help is needed.

Thanks


Sorry my bad, i tried bulk inserting data into a table at the subscriber end, which i believe should be replicated to the Publisher, but unfortunately, got the error message "Cannot bulk copy into a table 'tablename" that is enabled for immediate updating. Below is the statement issued

BULK INSERT [Table name]
FROM '{0}'
WITH (KEEPIDENTITY,
FIELDTERMINATOR =',',
ROWTERMINATOR = '',
FORMATFILE = '{1}'
noeld
noeld
SSC-Insane
SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)

Group: General Forum Members
Points: 23578 Visits: 2048
iwegbue3 (7/7/2010)
Hello Experts,

I have a Transactional replication setup with updateable subscription. I tried bulk copying data from the subscriber down to the Publisher and it throws up the error message, "Cannot bulk copy into a table 'tablename" that is enabled for immediate updating.

Please expert help is needed.

Thanks


Sorry my bad, i tried bulk inserting data into a table at the subscriber end, which i believe should be replicated to the Publisher, but unfortunately, got the error message "Cannot bulk copy into a table 'tablename" that is enabled for immediate updating. Below is the statement issued

BULK INSERT [Table name]
FROM '{0}'
WITH (KEEPIDENTITY,
FIELDTERMINATOR =',',
ROWTERMINATOR = '',
FORMATFILE = '{1}'


The "immediate" updating subscription synchronizes with the publisher using "triggers" and an special linked server that participates in a two-phase committed transaction using MSDTC. Bulk insert by default does NOT fire triggers so this action is probably invalidated because of that.

I have not tried it but probably specifying the FIRE_TRIGGERS flag could help you.


* Noel
iwegbue3
iwegbue3
SSC Journeyman
SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)

Group: General Forum Members
Points: 76 Visits: 28
Ok, Thanks for your response, will try enabling the FIRE_TRIGGERS flag and see how it goes.
iwegbue3
iwegbue3
SSC Journeyman
SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)

Group: General Forum Members
Points: 76 Visits: 28
Unfortunately, i added the fire triggers and it didn't make any difference.
raviteja_dasari
raviteja_dasari
SSC-Enthusiastic
SSC-Enthusiastic (100 reputation)SSC-Enthusiastic (100 reputation)SSC-Enthusiastic (100 reputation)SSC-Enthusiastic (100 reputation)SSC-Enthusiastic (100 reputation)SSC-Enthusiastic (100 reputation)SSC-Enthusiastic (100 reputation)SSC-Enthusiastic (100 reputation)

Group: General Forum Members
Points: 100 Visits: 18
Has this issue been resolved? I am facing a similar issue. I have a sql server 2008 R2 database and we have Transactional replication with immediate-updating subscriptions.

I need to bulk copy data into a table at a subscriber and I am getting the same error.

Can someone please post a solution to this issue?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search