The cursor does not include the table being modified or the table is not updatable through the cursor

Hello Friends,

Recently I came through this error “The cursor does not include the table being modified or the table is not updatable through the cursor“. It turned my mind to solve. Here is my experience with it.

Problem:

Server A is inserting data into Server B using linked server but while Inserting following error were occurring.

Error msg: 

The cursor does not include the table being modified or the table is not updatable through the cursor

Finding & Solution:

Most internet finding were suggesting to recreate the linked server but in that was not my case. Actually, Server A was inserting data into Server B using Linked server  into a View and that view had SELECT statement including “WITH (NOLOCK)” option which was causing that error. I just removed the “WITH (NOLOCK)” option from the view definition and problem got solved.

Hope! this will help someone else too. 🙂

Please share your experience with this error.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s