--- title: "first 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.first" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 67ed9447-7b10-4c87-98e7-f4c2e2470b3a author: David-Engel ms.author: v-daenge --- # first Method (SQLServerResultSet) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Moves the cursor to the first row of this [SQLServerResultSet](../../../connect/jdbc/reference/sqlserverresultset-class.md) object. ## Syntax ``` public boolean first() ``` ## Return Value **true** if the cursor is moved to the first row. Otherwise, **false**. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This first method is specified by the first method in the java.sql.ResultSet interface. ## See Also [SQLServerResultSet Members](../../../connect/jdbc/reference/sqlserverresultset-members.md) [SQLServerResultSet Class](../../../connect/jdbc/reference/sqlserverresultset-class.md)