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