Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locking of records in SQL
Message
 
À
27/11/2006 00:51:09
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01172552
Message ID:
01172763
Vues:
12
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 ...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform