Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locking with SQL7
Message
From
29/02/2000 02:38:44
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Locking with SQL7
Miscellaneous
Thread ID:
00338970
Message ID:
00338970
Views:
49
Usually when a next recordnumber is generated in VFP for whatever table, the record containing the next number or even better, the whole table, is locked to prevent to 2 users to simultanously update the next nr. It's essential that the lock is placed before the update is done.

How can this be done with client/server ?
I don't want the autonumbering feature of the database server because I'm not creating a primary key (as a matter of fact, I do let create the PK by the de DBserver) but for example an invoice number that restarts at 1 every year, unless SQL allows to reset this numbering programmatically ...
Next
Reply
Map
View

Click here to load this message in the networking platform