Cannot commit or rollback while enlisted in a transaction

Item Value
SQLCODE -800
Constant SQLE_CANNOT_COMMIT_OR_ROLLBACK_WHILE_ENLISTED
SQLSTATE 55W09
Sybase error code 13810
ODBC 2 State ERROR
ODBC 3 State ERROR

Probable cause 

You tried to explicitly commit or rollback on a connection that is enlisted in a transaction. You must use the Commit/Abort protocol of the transaction instead.