Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent of @@TRANCOUNT
Message
From
26/09/2006 19:15:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/09/2006 15:02:37
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
MySQL
Miscellaneous
Thread ID:
01157324
Message ID:
01157375
Views:
18
>Tired of googling it out, can't find whether it exists or is called something else.
>
>How do I know whether I have a transaction started in MySQL? I need an equivalent to TSQL's @@TRANCOUNT or VFP's TxnLevel().

Maybe I'm reading it wrong:

"In MySQL you cannot nest transactions. If you issue a BEGINstatement for agiven user while that user has a pending transaction, MySQL will treat it as aCOMMITfollowed by a BEGIN. In other words, MySQL allows individual users to per-form only sequential transactions.
NOTEMySQL does not support save points as do some other data-bases.You can only commit or roll back a complete transaction."

Source: dev.mysql.com/tech-resources/articles/mysql-db-design-ch5.pdf
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform