Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.67 KB

File metadata and controls

47 lines (36 loc) · 1.67 KB
title getResultSetHoldability Method (SQLServerDatabaseMetaData) | 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
SQLServerDatabaseMetaData,getResultSetHoldability
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid f0bd6283-83ab-4a0a-b825-ec4cdccf03e1
author David-Engel
ms.author v-daenge

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