--- title: "updateNString Method (int, java.lang.String) | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: sql ms.prod_service: connectivity ms.reviewer: "" ms.technology: connectivity ms.topic: conceptual ms.assetid: 1bb909f1-4a96-4be1-adea-36c8d9703112 author: David-Engel ms.author: v-daenge --- # updateNString Method (int, java.lang.String) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Updates the designated column with a **String** value using the specified column index. ## Syntax ``` public void updateNString(int columnIndex, java.lang.String nString) ``` #### Parameters *columnIndex* An **int** that indicates the column index. *nString* A **String** object. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This updateNString method is specified by the updateNString method in the java.sql.ResultSet interface. This method passes Java **String** to selected **nchar**, **nvarchar(max)**, **ntext**, and **xml** columns. Using this method on other data type columns will throw an exception. ## See Also [updateNString Method (SQLServerResultSet)](../../../connect/jdbc/reference/updatenstring-method-sqlserverresultset.md) [SQLServerResultSet Members](../../../connect/jdbc/reference/sqlserverresultset-members.md) [SQLServerResultSet Class](../../../connect/jdbc/reference/sqlserverresultset-class.md)