Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DETECTING ACTIVE ADO TRANSACTION

Status
Not open for further replies.

Bickle

Programmer
Jul 12, 2001
22
0
0
FR
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....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top