Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if a transaction is still pending in SQ
Message
From
01/05/2007 11:27:00
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01221475
Message ID:
01221512
Views:
21
Yes, that was a slip on my part. I meant trancount...



>>Well, the help states that @@ROWCOUNT should work, however, it returned 1 in a field (similar to how COUNT works) and when I tried to use rollback (because @@ROWCOUNT was > 0) it returned the ODBC Err# 3903, (1526) The Rollback transaction request has no corresponding BEGIN TRANSACTION. So why did it return 1 then?
>
>because @@ROWCOUNT was > 0 (You meant TRANCOUNT, right)?
>
>I'm not sure how ROWCOUNT corresponds to TRANCOUNT. As I said, trancount > 0 doesn't mean that it's your transaction opened, it just means you have opened transactions.
>
>Check also DBCC OPENTRAN
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform