Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
An objective Analysis of RV's v. SP's
Message
De
24/10/2000 14:27:19
 
 
À
24/10/2000 13:14:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00433616
Message ID:
00433711
Vues:
15
>You could have a dynamically constructed RV (it is, after all, an SQL Statement) that builds the SQL statement and then makes the call to CREATE SQL VIEW REMOTE blah blah AS based on the criteria that the user enters. This method does not require any changing of code on the client and I found it quite effective for the query tool-generated picklists in an app I previously worked on.

The caveat here is that you have to be careful to "clean up the mess" afterwards. Unless you are using a temporary DBC, dropping and recreating views will lead to DBC bloat. This could be a problem if the user count is high and they are sharing the same installation. Less of a problem if all clients have their own copy, but still an issue.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform