Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Connections
Message
 
À
04/02/2003 18:14:09
Fabian Valencia
Calamos Asset Managment Inc.
Naperville, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Divers
Thread ID:
00749060
Message ID:
00749479
Vues:
25
>The connections are made trhough SQLSTRINGCONNECT. My problem is that when the error handler of the application fires I want to rollback all the transactions as well as change the transactions to automatic if they are set to Manual.

Fabian,

I've a couple ideas off the top of my head.. You could place ON ERROR statements before each critical SQLEXEC to pass the connection handle to your error handler.

Alternatively you could set up one public connection handle variable that gets set to the current handle in use before each critical SQLEXEC and then have your error handler reference that global handle variable for its cleanup.

Laterness,
Jon
Jon Rosenbaum
Devcon Drummer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform