Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Xbase commands Vrs Sql commands
Message
De
07/05/2005 11:39:27
 
 
À
07/05/2005 03:39:07
Suhas Hegde
Dental Surgeon
Sirsi, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Database:
Visual FoxPro
Divers
Thread ID:
01011885
Message ID:
01011902
Vues:
23
>hi,
>
>I always find Xbase commands faster than Sql(statement) commands.
>
>
>Any case where Sql statments are faster ?
>Also i would like to know best prsctices where to use what ??
>
>
>TIA
>suhashegde

I would imagine this:

SELECT * FROM mytable INTO CURSOR mycursor

would be faster than:

create cursor mycursor (field definitions)
select mytable
scan
scatter memvar memo
insert into myCursor from memvar
endscan

I generally use SQL as my first choice. If it's slow I try tooptimise it with the appropriate indexes. If that's still too slow I look at using xbase code. Sometimes the xbase code is faster sometimes not, but I find SQL easier to maintain and easier to run against a database different to VFP.

HTH,
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform