--- title: "updateRow 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: - "MSQLServerResultSet.updateRow" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: cfced0ca-a281-40dc-8d2f-370d5f0bf12b author: David-Engel ms.author: v-daenge --- # updateRow Method (SQLServerResultSet) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Updates the underlying database with the new contents of the current row of this [SQLServerResultSet](../../../connect/jdbc/reference/sqlserverresultset-class.md) object. ## Syntax ``` public void updateRow() ``` ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This updateRow method is specified by the updateRow method in the java.sql.ResultSet interface. This method cannot be called when the cursor is on the insert row. If this method is called when no column values have changed, an exception will be thrown. ## See Also [SQLServerResultSet Members](../../../connect/jdbc/reference/sqlserverresultset-members.md) [SQLServerResultSet Class](../../../connect/jdbc/reference/sqlserverresultset-class.md)