Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.51 KB

File metadata and controls

50 lines (37 loc) · 1.51 KB
title setHoldability Method (SQLServerConnection) | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.technology connectivity
ms.topic conceptual
apiname
SQLServerConnection.setHoldability
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 552eebd0-4c38-43f0-961f-35244f99109b
author David-Engel
ms.author v-daenge

setHoldability Method (SQLServerConnection)

[!INCLUDEDriver_JDBC_Download]

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

Syntax

  
public void setHoldability(int nNewHold)  

Parameters

nNewHold

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

HOLD_CURSORS_OVER_COMMIT

CLOSE_CURSORS_AT_COMMIT

Exceptions

SQLServerException

Remarks

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

See Also

SQLServerConnection Members
SQLServerConnection Class