Cannot commit or rollback while enlisted in a transaction

Error constant SQLE_CANNOT_COMMIT_OR_ROLLBACK_WHILE_ENLISTED
ODBC 2 State ERROR
ODBC 3 State ERROR
Severity 16
SQLCODE –800
SQLSTATE 55W09
Sybase error code 13810
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.