Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: VB6 - ADO - Oracle Problem

Re: VB6 - ADO - Oracle Problem

From: TimKArnold <timkarnold_at_aol.com>
Date: 02 Dec 1999 03:26:07 GMT
Message-ID: <19991201222607.18820.00000087@ng-bk1.aol.com>


>Is there any way that I can lock rows from my recordset till I update them
>succesfuly or I only should be satisfied knowing that someone else has
>updated the same rows after I read them?

You have to:

1. rs.begintrans
2. select * from tab where ....    for update nowait
3. commit or rollback

The 'for update nowait' locks the rs
until rollback or commit.

Good luck,
Tim Received on Wed Dec 01 1999 - 21:26:07 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US