ADO2: pessimistic lock with Jet oldedb 3.51 prob. 
Author Message
 ADO2: pessimistic lock with Jet oldedb 3.51 prob.

hi all,
i'm trying implementing pessimistic locking with jet oledb provider on vb6
pro sp2, ado 2 retail version included on vb6 cdrom.

on a connection with .mode=adModeReadWrite, .cursorLocation adUseServer,

recordset with locktype adLockpessimistic, cursorlocation  adUseServer,
cursortype adOpenKeyset or cursortype adOpenStatic

on record fetch i try an implicit edit with
recSet.fields(0).value=recSet.fields(0).value
trapping the error if any, but i never get an error, even with other app.
using explicit dao code recset.edit on te same record..

i'm surely wrong, but i can't see were..

i tryed
recSet.Fields(0).value=recSet.Fields(0).value
recSet.update

when the record was locked by other app with dao code
and this way i get an error (err.description "An error occured".... )
but when the record is not locked by other apps this kind of lock is
released, so this is not the right way..
any hits woul'd be appreciate...
tia
Andrea Montanari



Wed, 22 Aug 2001 03:00:00 GMT  
 ADO2: pessimistic lock with Jet oldedb 3.51 prob.
When I have tried server side cursors using the data environment at design
time (equivalent to adUseServer) I always get an error, so I presumed that
Jet doesn't support server side cursors.....  maybe this will help?

Andy


Quote:
>hi all,
>i'm trying implementing pessimistic locking with jet oledb provider on vb6
>pro sp2, ado 2 retail version included on vb6 cdrom.

>on a connection with .mode=adModeReadWrite, .cursorLocation adUseServer,



Sun, 26 Aug 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ADO2: pessimistic lock with jet oledb 3.51 prob.

2. ADO2: pessimistic lock with jet oledb 3.51 prob.

3. ADO2: pessimisti lock with jet oledb 3.51 prob.

4. Jet DB Performance (Jet 3.51 vs. Jet 4.0)

5. ADO 2.1, JET & pessimistic locking

6. ADO21/JET 4: Making your own pessimistic (record) locking....a suggestion

7. Jet Pessimistic Locking

8. Jet 3.5 Pessimistic Locking

9. ADO21/JET 4: Making your own pessimistic (record) locking....a suggestion

10. Jet 3.51 vs Jet 4.0 vs MSDE

11. Ms Jet 4.0 VS Jet 3.51 problem loading data

12. Jet 4.0 vs. Jet 3.51

 

 
Powered by phpBB® Forum Software