共用方式為


setHoldability Method (SQLServerConnection)

Changes the holdability of SQLServerResultSet objects that are created by using this SQLServerSavepoint object to the given holdability.

public void setHoldability(int nNewHold)

參數

nNewHold

An int value that contains one of the following holdability levels:

HOLD_CURSORS_OVER_COMMIT

CLOSE_CURSORS_AT_COMMIT

例外狀況

SQLServerException

備註

This setHoldability method is specified by the setHoldability method in the java.sql.Connection interface.

另請參閱

參考

SQLServerConnection Class

概念

SQLServerConnection Methods
SQLServerConnection Members