When close_on_endtrans is set to On, cursors are closed whenever a transaction is committed unless the cursor was opened WITH
HOLD. The behavior when a transaction is rolled back is governed by the ansi_close_cursors_on_rollback option.
When close_on_endtrans is set to Off, cursors are not closed at either a commit or a rollback, regardless of the ansi_close_cursors_on_rollback
option setting or whether the cursor was opened WITH HOLD or not.
Setting this to Off provides Adaptive Server Enterprise compatible behavior.