Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you update a table structure and views automatica
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00267180
Message ID:
00267206
Vues:
19
Assuming the view definition (the SQL statement) is still valid after the structure change(s), the way I do it is to retrieve the query text for the view using DBGETPROP('nameofview','VIEW','SQL') and place it into a character variable. I then DELETE VIEW nameofview and replace it by issuing a CREATE SQL VIEW command using the retrieve view definition and macro expansion. If you don't want the obsolete view in the DBC just PACK DATABASE.
>How do you programmatically update a view after you modify a structure so you don't get "base fields have changed" message
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform