If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Problem with locks using ODBC

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-16-04, 03:32
koh koh is offline
Registered User
 
Join Date: Dec 2004
Posts: 1
Problem with locks using ODBC

Hi,

I am using IDS 9.40 on a Windows 2000 Server and ClientSDK 2.81 TC3 on a Windows XP Client.

Working with my aplication that uses the c++-API (but also sql-editor or serverstudio) the following Statements lead to a lock on row with id = 2 in tab1, so that another user CAN READ BUT NOT UPDATE this row until commit/rollback:

begin work;
set isolation to committed read retain update locks;
select * from tab1 where id = 2 for update;
... now edit and update ...
commit;

When using ODBC another user ALSO CAN UPDATE the row with id=2! You can try this using MSQRY32.exe on a Windows Client.
How can i reach the same functionality using ODBC as using the c++-API?

Thanks in advance

Hubert
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On