Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ROLLBACK in error handler and cleanup
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
ROLLBACK in error handler and cleanup
Miscellaneous
Thread ID:
00345556
Message ID:
00345556
Views:
51
I put this code in my error handler and also in my cleanup code:
DO WHILE TXNLEVEL() > 0
	ROLLBACK
ENDDO
It seems like a good idea to me. I had been getting errors following other errors that said "command cannot be used within a transaction" or something. Can anyone see a problem with what I have? There's a lot I don't know about proper error handling.
Next
Reply
Map
View

Click here to load this message in the networking platform