Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if a transaction is still pending in SQ
Message
De
01/05/2007 11:24:16
 
 
À
01/05/2007 11:13:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01221475
Message ID:
01221509
Vues:
7
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform