Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.19 KB

File metadata and controls

40 lines (30 loc) · 1.19 KB
title getUpdateCount Method (SQLServerStatement)
description getUpdateCount Method (SQLServerStatement)
author dlevy-msft-sql
ms.author dlevy
ms.reviewer davidengel, machavan, sunilbs
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
apilocation sqljdbc.jar
apiname SQLServerStatement.getUpdateCount
apitype Assembly

getUpdateCount Method (SQLServerStatement)

[!INCLUDEDriver_JDBC_Download]

Retrieves the current result as an update count.

Syntax

  
public final int getUpdateCount()  

Return Value

An int that contains the update count. If the returned result is a result set object or there are no more results, -1 is returned.

Exceptions

SQLServerException

Remarks

This getUpdateCount method is specified by the getUpdateCount method in the java.sql.Statement interface.

See Also

SQLServerStatement Members
SQLServerStatement Class