Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is more efficient of the two
Message
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 8 SP1
Database:
MS SQL Server
Divers
Thread ID:
01135592
Message ID:
01135609
Vues:
12
This message has been marked as a message which has helped to the initial question of the thread.
>Hi all
>
>What is more efficient:
>
SQL PT dataset (variable no of records but within a range of records)
>INDEX on a field
>
>SCAN
>   SEEK(in "MySQLPTCursor")
>   Do other stuff
>ENDSCAN
>
>
>SCAN
>   SQL PT single record as needed
>   Do other stuff
>ENDSCAN
>
>Please advise.

It is very hard to say w/o proper testing. I would vote for second if you first issue SQLPREPARE() to prepare your query first and then in loop just change parameters and issue SQLEXEC(), BUT as I said, I am not so sure that this is the faster way.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform