Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLExec or SQLPrepare + SQLExec ???
Message
De
01/03/1999 09:49:02
 
 
À
01/03/1999 09:47:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00189574
Message ID:
00192634
Vues:
22
Yes it is.

>Actually, the fastest way is to run SQLExec only against ready-to-use (compiled) back-end stored procedure.
>
>>Hi David ---
>>
>>In some cases, SQLPREPARE can be a lot faster than just SQLEXEC. As far as SQL Server goes, I believe that SQLPREPARE compiles the query into SQL's memory cache of procedures. SQLEXEC alone does this and then executes.
>>
>>>>
>>>>I was wondering...
>>>>
>>>>What's the difference between using:
>>>>
>>>>1) The SQLExec with the embedded query string
>>>>2) The SQLprepare with the query string followed by an SQLExec
>>>>
>>>>The help mentions that SQLPrepare send the query string for
>>>>compilation by the ODBC data source. This compiling is not
>>>>mentionned for the SQLExec command.
>>>>
>>>>Does this mean that SQLExec without an SQLPrepare will
>>>>run my queries slower ?
>>>>
>>>>Or is it just a question of personal choice?
>>>>
>>>>TIA
>>>>
>>>>Pascal
>>>
>>>My understanding of SQLPrepare is that it is that it compiles the SQL statement and creates the plan. Then when you run the SQLExec it will just run the plan.
------------------------------------------------
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
Répondre
Fil
Voir

Click here to load this message in the networking platform