Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with multiuser
Message
De
18/07/2001 17:48:03
 
 
À
18/07/2001 16:32:22
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00531740
Message ID:
00532255
Vues:
12
Thanks for the advice, I'll keep that in mind for the when time comes. Right now the situation is that I have to rewrite some underlying things in app as general improvements and simply to make it more "well written" than it currently is.

---
Jonathan chan



>Jonathan
>
>The "issue" with pessimistic locking is that if you create apps that rely on it, you are constraining yourself to local VFP tables. Eventually client/s may well ask whether you can support Oracle/SQL Server and you will have a rewrite on your hands.
>
>My advice is to create a method or trigger *right now* that handles the inventory side. For now you can use local transactions and rlock() to make sure that your VFP inventory table stays correct. In future you will be able to use a C/S trigger and/or SQL passthrough code to manage inventory; your app will not need to change or be rewritten because you are calling the same method whether you use C/S or local data.
>
>FWIW, SQL Server now handles pessimistic locking. If you use a trigger on your local tables, you should be able to write a similar one for SQL Server when the time comes, again without rewriting your frontend app.
>
>Regards
>
>JR
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform