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:24:16
 
 
To
01/05/2007 11:13:21
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:
01221509
Views:
17
Maybe you could use @@TRANCOUNT, because @@ROWCOUNT may not usable here (Help says that it resets to 0 by any SET command, or resets to 1 by simple variable assignment).

>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?
>
>
>
>>>Yes and I did not write it. I am just fixing what I can (as I find problems). Changing that would involve a change to the base classes... Don't even start... :o)
>>>
>>I see. Best of luck then! :)
>>
>>In the long run you may end up with a change in the base class, though. Otherwise you may have serious problems...
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform