Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ODBC Connection String Options...AutoTransactions
Message
From
05/01/1999 12:58:11
 
 
To
05/01/1999 08:57:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00172711
Message ID:
00172836
Views:
19
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
Previous
Reply
Map
View

Click here to load this message in the networking platform