• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1590
  • Last Modified:

linked servers

I get the following message while working with a cursor. This cursor is for a table which is on a linked server:

Remote tables are not updatable. Updatable keyset-driven cursors on remote tables require a transaction with the REPEATABLE_READ or SERIALIZABLE isolation level spanning the cursor.

This is not showed as an error or warning.
Its just a message.

Can someone tell me a little more abt. this message and the risks of using such cursors?

Thanks.
0
meers1974
Asked:
meers1974
  • 2
1 Solution
 
xenon_jeCommented:
Can you please post the code you use to make the update?

Also you update non-key fields or the key fields?

Is the application doing what is supossed to do, or the message appears and beside the message, the updates are nott made? or they are made and they do not appear in the cursor (but are present in the database)?

in other words... try to go deeper, just beside the error message, and describe the behaviour of your app....

thx,
 xenon
0
 
meers1974Author Commented:
Following is the code:

DECLARE tmp_cursor CURSOR FOR
            SELECT VERSION_ID, VERSION_STAT FROM VERSION
            WHERE VERSION_STAT = 'Q'
            OR VERSION_STAT = 'R'

Open tmp_cursor

Fetch next from tmp_cursor into @version, @stat

While @@fetch_status = 0
Begin
      UPDATE VERSION
      SET VERSION_STAT = 'W', LAST_UPDT_DT = GETDATE()
      WHERE VERSION_ID = @version

      Fetch next from tmp_cursor into @version, @stat
End

The update happens perferctly. I am getting what I want.
But this message is also displayed:

Remote tables are not updatable. Updatable keyset-driven cursors on remote tables require a transaction with the REPEATABLE_READ or SERIALIZABLE isolation level spanning the cursor.

Does this mean any risk? I am getting the expected result anyway. So, I wanted to know the meaning of this message, to determine if I can ignore it or not.

Thanks.
0
 
xenon_jeCommented:
In the code you posted I can't see any keyset cursor......

So not the code above produces the error....

The error you receive si the 16953, which has level 10 of severity...this means that is only a message...

 You can read the next link:
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q269/6/94.asp&NoWebContent=1

But you have to go in yur code and find the certain code that generates this error message...

My advice: never go over an error message, even if its a warning one...Study it if you obtained it and only if you are very sure that you know many things about it move on...sometimes this 'jumping' over an warning message causes very big troubles in the future.....

The link I gave you suggests 2 choices to remedy the error...but obviously not on the code you posted...

good luck,
    xenon
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now