Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lock in SQL SERVER.
Message
From
30/03/2004 15:40:35
 
 
To
29/03/2004 15:26:30
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00890575
Message ID:
00890964
Views:
24
The only effective way to imlement the same type of pessimistic record/row locking that one finds in xBase is to add a lock status (logical column) to the SQL Server table.

Your app must take the responsibility for checking that a row isn't locked beforehand, locking it by setting the status to true, and then setting the status back to false when you're done (maybe in an update trigger).

Only issue with that is if someone starts to edit, gets the lock, and then the system hangs. I've seen people implement jobs and/or additional lock date/time columns to manage some of that.

Kevin
Previous
Reply
Map
View

Click here to load this message in the networking platform