--- title: "isAfterLast 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.isAfterLast" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 19f9d124-3184-4985-8b97-503a8ab8b4f9 author: David-Engel ms.author: v-daenge --- # isAfterLast Method (SQLServerResultSet) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Retrieves whether the cursor is after the last row in this [SQLServerResultSet](../../../connect/jdbc/reference/sqlserverresultset-class.md) object. ## Syntax ``` public boolean isAfterLast() ``` ## Return Value **true** if the cursor is after 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 isAfterLast method is specified by the isAfterLast 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](../../../connect/jdbc/reference/sqlserverresultset-members.md) [SQLServerResultSet Class](../../../connect/jdbc/reference/sqlserverresultset-class.md)