Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ODBC Connection String Options...AutoTransactions
Message
De
05/01/1999 12:58:11
 
 
À
05/01/1999 08:57:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00172711
Message ID:
00172836
Vues:
20
For automatic transactions and SQL Passthrough, use SQLSETPROP() as in:

=SQLSETPROP(nConnectionHandle,"Transactions",1) === Auto on
=SQLSETPROP(nConnectionHandle,"Transactions",2) === Auto off, use SQLCOMMIT()

There is no blind rule for an optimal ODBC connection. Generally, you want to play around with buffer and packet sizes until it runs well :-)


>I want the most optimal connect string.
>What options do you developers use? Reccommend?
>
>I specifically want to know about.
>The Automatic Transactions..
>How do I turn this on and off in the connect
>sting.
>
>Mine looks like:
>'DRIVER=SQL Server;SERVER=RUNTIME-PDM;UID=sa;PWD=sa;APP=QuestPDM®;WSID=TJM;
>DATABASE=questpdm;AutoTranslate=No;
>Regional=Yes;UseProcForPrepare=2;
>QuotedId=Yes;AnsiNPW=Yes;PacketSize=18192'
>
>But I can't figure out where to look for all the options.
>
>Thanks.
------------------------------------------------
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