Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.28 KB

File metadata and controls

41 lines (30 loc) · 1.28 KB
title isFirst Method (SQLServerResultSet)
description isFirst 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.isFirst
apitype Assembly

isFirst Method (SQLServerResultSet)

[!INCLUDEDriver_JDBC_Download]

Retrieves whether the cursor is on the first row of this SQLServerResultSet object.

Syntax

  
public boolean isFirst()  

Return Value

true if the cursor is on the first row. false if the cursor is at any other position or if the result set contains no rows.

Exceptions

SQLServerException

Remarks

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

If this method is used with forward and dynamic cursors, an exception is thrown.

See Also

SQLServerResultSet Members
SQLServerResultSet Class