Does anybody have any ideas how to detect with ADO if there is a current transaction already started. In my error handling I need to detect this before I do a RollBack...
I don't know of a way to check. But, you could set a boolean variable to true after you begin a transaction and then set it to false everytime you commit rollback.
If you declare your adodb object WithEvents then you can put this is then put this in the events.
OK thanks, I thought of that option but I was hoping the ADO connection object had a property that could tell me if a transaction has already started....
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.