Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement