Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locking Rows with ADO
Message
 
To
13/06/2001 13:54:48
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00518990
Message ID:
00519235
Views:
15
Hi!
Have you specified oRS.CursorLocation = adUseServer when trying oRS.LockType = adLockPessimistic ?

Alexander

>I'm trying to write a routine to generate ID's, based on a meta table, which will control my ID's... Well, I'll open a RecordSet with the record that brings me the last ID for a given table, and I want to increment that ID and update on my table. Well, while I'm doing this process, I must lock the record, this way no user will generate the same ID.
>In VFP, that's easy... but with ADO, I just don't know how to do that... I'm trying oRS.LockType = adLockPessimistic, but it doesn't works.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform