Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
控制在事务结束时关闭游标。
On、Off
On
jConnect 连接为 Off
可以为单个连接或 PUBLIC 设置此选项。您必须具有 SET ANY PUBLIC OPTION 系统特权才能为 PUBLIC 或者其他用户或角色设置此选项。
当 close_on_endtrans 选项设置为 On 时,除非游标在打开时使用了 WITH HOLD,否则游标会在事务提交时被关闭。事务回退时的行为受 ansi_close_cursors_on_rollback 选项控制。
在 close_on_endtrans 选项设置为 Off 时,无论 ansi_close_cursors_on_rollback 选项为何设置,或游标在打开时是否使用 WITH HOLD,游标都不会在提交或回退时关闭。
将此选项设置为 Off,可提供与 Adaptive Server Enterprise 兼容的行为。