Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Again, troubles with CursorAdapter
Message
From
15/08/2003 13:53:23
 
 
To
15/08/2003 13:37:03
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00819734
Message ID:
00820604
Views:
23
Hi Aleksey,

>What you are missing is the fact that after you execute SQLSETPROP(con,"Transactions",2), the server will automatically switch to implicit transaction as soon as you try to execute any command that is supposed to be tracked by a transaction.

For me this is not true.
It occur at first next SQLEXEC() command.

SQLCOMMIT(con) is not necessary.
con=SQLCONNECT("LocalServer")
SQLSETPROP(con,"Transactions",2)
?SQLEXEC(con,"select * from master..sysprocesses")
SQLEXEC(con,"select @@TRANCOUNT as count", "trancount")
? "Current trancount:",trancount.count
SQLSETPROP(con,"Transactions",1)
SQLEXEC(con,"select @@TRANCOUNT as count", "trancount")
? "Current trancount:",trancount.count
Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform