16
There was a transaction active when exiting the stored procedure '%.*s'. The temporary table '%.*s' was dropped in this transaction either explicitly or implicitly. This transaction has been aborted to prevent database corruption.
When exiting a stored procedure, Adaptive Server checks to see whether there is an active transaction (a transaction that has not been committed), then checks whether any temporary objects exist for the uncommitted transaction.
If temporary objects exist, the transaction is rolled back, the temporary objects are dropped, and error 277 is raised.
In stored procedures, make sure all begin transaction statements have corresponding commit transaction or rollback transaction statements.
In chained mode, if there is no explicit begin transaction statement, an implicit begin transaction is issued. If you use chained mode, an explicit commit transaction or rollback transaction statement is required to end the transaction.
If you confirm that all begin transaction statements have corresponding commit transaction or rollback transaction statements, check to see whether the stored procedure is exiting without completing its processing.
All versions