Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locking of records in SQL
Message
 
To
27/11/2006 00:51:09
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaysia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01172552
Message ID:
01172763
Views:
11
Hi Yh Yau,

First, create a field named Editing, or whatever you want, of type tinyint or smallint, set the default value to 0 (zero)

Second, before beging the edition of the record, update that field with 1,
you can use sqlexe command to do that,
when you finished editing, update the field with 0 to set it "Editable" again

Of course, you have to reprogram the form to check if that field is set to 0 or 1 before beging editing,

that fiels is like a Switche on/off

Regards
Amilcar Pino
Have a nice day ...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform