Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.54 KB

File metadata and controls

46 lines (35 loc) · 1.54 KB
title isBeforeFirst Method (SQLServerResultSet) | 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
SQLServerResultSet.isBeforeFirst
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid e0e2bd28-6949-47dc-b9dd-145ffb337069
author David-Engel
ms.author v-daenge

isBeforeFirst Method (SQLServerResultSet)

[!INCLUDEDriver_JDBC_Download]

Retrieves whether the cursor is before the first row in this SQLServerResultSet object.

Syntax

  
public boolean isBeforeFirst()  

Return Value

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

Exceptions

SQLServerException

Remarks

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

If this method is used with dynamic cursors, including forward-only read-only cursors, and the selectMethod connection property is set to "cursor", an exception will occur.

See Also

SQLServerResultSet Members
SQLServerResultSet Class