Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remote Views, SQL PT, or ADO?
Message
De
21/11/1999 22:13:10
 
 
À
21/11/1999 21:59:41
Jane Marie Ocampo
Innovision Systems International
Manila, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00293784
Message ID:
00293792
Vues:
30
Hi Jane,

There are few concrete best mechanisms, but some rules of thumb I have found helpful:

Use remote views if......

You're more comfortable working with Fox commands and you don't really want to get too involved with SQL Server commands. Remote views are a great learning tool for client/server and often will get the job done. This is the easiest way to bind controls to data.

Use SPT if......

You are dealing with large data sets, are comfortable with T-SQL, and/or have identity or uniqueidentifier fields defined in the SQL Server database.

Use ADO if.....

If this may be an n-tier solution involving non-VFP and non-SQL Server components. Since you can't directly bind controls to ADO recordsets, then you almost have to design your system similar to the old Fox way of using memvars or arrays for displaying and manipulating data. Then again, there are the VFPCOM functions for CursorToRs and RSToCursor to move data between tables and recordsets that may alleviate the binding issues....

Conclusion:

Use what is comfortable and what you believe represents the best fit with your application architecture.

>We are using SQL Server as Back-end, VFP as Front-End. Which of the above mechanisms is the best one to manipulate data? What mechanism is best suite in a specific case?
------------------------------------------------
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform