Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if a transaction is still pending in SQ
Message
 
 
À
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:
01221507
Vues:
8
>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
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform