Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best practice for views
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Best practice for views
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01101751
Message ID:
01101751
Vues:
48
Currently our app uses multi-table views to load our grids. We generate a statement ( "CREATE SQL VIEW AS ..." ) at runtime based on columns the user selects and then we open the view and set properties accordingly. Columns could be standard table columns or calculated fields requiring a function call ".. AS ... " in the query. We are doing some restructuring of the code to better allow us to connect to SQL in the not to distant future.

We want to use Cursor Adapters. I have been playing around and see I have many options. Should I create the same query string and load it into the Adapter object, setting all the appropriate properties and execute CursorFill() or should I go ahead and run the statement as a create view and save the definition and then open it with a use command and then attach it to an object, keeping in mind the view definition will change when the user chooses to add/remove columns to the grid and the whole rebuild process is started again. I seem to think that letting the Adapter do all the work is better, but any other arguments for/against?
Répondre
Fil
Voir

Click here to load this message in the networking platform