G
Guest
Hi everubody.
I wonder if there is a simpler to get to know if there is a currently active
transaction during execution. The only way I am able to get that information
is to declare a boolean variable inside the procedure or function where I
need a transaction, and then set that variable to True just after beginning a
transaction, set it to False just after committing the transaction. That way,
if a runtime occurs, I am able to know if there is any active transaction so
that I can roll it back. It works well, but I don't like this kind of
solution.
I was reading through the Workspace object documentation, but couldn't find
anything that can tell me if a given workspace has an active transaction at
any given moment. So I would like to ask you folks if anyone out there has a
better approach to face this sort of problem.
Thank you very much in advance.
Greetings from Portugal.
Reis Quarteu.
I wonder if there is a simpler to get to know if there is a currently active
transaction during execution. The only way I am able to get that information
is to declare a boolean variable inside the procedure or function where I
need a transaction, and then set that variable to True just after beginning a
transaction, set it to False just after committing the transaction. That way,
if a runtime occurs, I am able to know if there is any active transaction so
that I can roll it back. It works well, but I don't like this kind of
solution.
I was reading through the Workspace object documentation, but couldn't find
anything that can tell me if a given workspace has an active transaction at
any given moment. So I would like to ask you folks if anyone out there has a
better approach to face this sort of problem.
Thank you very much in advance.
Greetings from Portugal.
Reis Quarteu.