--- title: "updateLong Method (java.lang.String, long) | 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.updateLong (java.lang.String, long)" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: f6003706-35de-42b1-8f23-899a388adb5b author: David-Engel ms.author: v-daenge --- # updateLong Method (java.lang.String, long) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Updates the designated column with a **long** value given the column name. ## Syntax ``` public void updateLong(java.lang.String columnName, long x) ``` #### Parameters *columnName* A **String** that contains the column name. *x* A **long** value. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This updateLong method is specified by the updateLong method in the java.sql.ResultSet interface. ## See Also [updateLong Method (SQLServerResultSet)](../../../connect/jdbc/reference/updatelong-method-sqlserverresultset.md) [SQLServerResultSet Members](../../../connect/jdbc/reference/sqlserverresultset-members.md) [SQLServerResultSet Class](../../../connect/jdbc/reference/sqlserverresultset-class.md)