--- title: "isLast 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.isLast" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 85d4451f-6392-470e-ab21-78a495b45792 author: David-Engel ms.author: v-daenge --- # isLast Method (SQLServerResultSet) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Retrieves whether the cursor is on the last row of this [SQLServerResultSet](../../../connect/jdbc/reference/sqlserverresultset-class.md) object. ## Syntax ``` public boolean isLast() ``` ## Return Value **true** if the cursor is on the last row. **false** if the cursor is at any other position or if the result set contains no rows. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This isLast method is specified by the isLast 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](../../../connect/jdbc/reference/sqlserverresultset-members.md) [SQLServerResultSet Class](../../../connect/jdbc/reference/sqlserverresultset-class.md)