Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.57 KB

File metadata and controls

42 lines (31 loc) · 1.57 KB
title getResultSetHoldability Method (SQLServerDatabaseMetaData)
description getResultSetHoldability Method (SQLServerDatabaseMetaData)
author David-Engel
ms.author davidengel
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
apilocation sqljdbc.jar
apiname SQLServerDatabaseMetaData,getResultSetHoldability
apitype Assembly

getResultSetHoldability Method (SQLServerDatabaseMetaData)

[!INCLUDEDriver_JDBC_Download]

Retrieves the default holdability of result sets for this database.

Syntax

  
public int getResultSetHoldability()  

Return Value

An int that indicates the default holdability.

Exceptions

SQLServerException

Remarks

This getResultSetHoldability method is specified by the getResultSetHoldability method in the java.sql.DatabaseMetaData interface.

When using the [!INCLUDEjdbcNoVersion] with a [!INCLUDEssNoVersion] database, this methods returns 1, which is equivalent to the ResultSet.HOLD_CURSORS_OVER_COMMIT constant.

See Also

SQLServerDatabaseMetaData Methods
SQLServerDatabaseMetaData Members
SQLServerDatabaseMetaData Class