Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.64 KB

File metadata and controls

47 lines (33 loc) · 1.64 KB
title getConcurrency Method (SQLServerResultSet)
description getConcurrency Method (SQLServerResultSet)
author David-Engel
ms.author davidengel
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
apilocation sqljdbc.jar
apiname SQLServerResultSet.getConcurrency
apitype Assembly

getConcurrency Method (SQLServerResultSet)

[!INCLUDEDriver_JDBC_Download]

Retrieves the concurrency mode of this SQLServerResultSet object.

Syntax

  
public int getConcurrency()  

Return Value

An int that indicates the concurrency type, which can be one of the following values:

ResultSet.CONCUR_READ_ONLY

ResultSet.CONCUR_UPDATABLE

Exceptions

SQLServerException

Remarks

This getConcurrency method is specified by the getConcurrency method in the java.sql.ResultSet interface.

The concurrency used is determined by the SQLServerStatement object that created the result set.

This method can be used to determine the actual concurrency. If the application selected CONCUR_READ_ONLY or CONCUR_UPDATABLE, these will be returned. If the application used default concurrency, CONCUR_READ_ONLY will be returned.

See Also

SQLServerResultSet Members
SQLServerResultSet Class