Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tip of the Day --- Views
Message
De
27/09/1999 23:32:02
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Tip of the Day --- Views
Divers
Thread ID:
00269784
Message ID:
00269784
Vues:
46
Hi All,

When using local views, it is not only unnecesary, but probably undesirable to explicitly open the base tables for those views. This gets one into situations where TABLEUPDATE() is being applied to the view and changes are not being saved because the base table is being buffered and never updated.

VFP will open the base tables when the view is USEd. Does this mean you want to access them? NO. Avoid temptation. Stick with the view and apply all deletes, inserts, and updates to the view and then update or revert the view.

If your view is complicated and involves 4 different base tables, how many tables/views are in your DataEnvironment? One. The view.

IF you are new to VFP, keep this tip in mind when designing your application. It'll save you a lot of grief.

:-)
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform