--- title: "getNClob Method (int) (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 ms.assetid: 103082e3-de98-4dff-8dc7-eaa5c64b1597 author: David-Engel ms.author: v-daenge --- # getNClob Method (int) (SQLServerResultSet) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Retrieves the value of the designated column in the current row of the [SQLServerResultSet](../../../connect/jdbc/reference/sqlserverresultset-class.md) object as an NClob object in the Java programming language. ## Syntax ``` public java.sql.NClob getNClob(int columnIndex) ``` #### Parameters *columnIndex* An **int** that indicates the column index. ## Return Value A NClob object. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This getNClob method is specified by the getNClob method in the java.sql.ResultSet interface. This method is supported only on **nvarchar(max)**, **ntext**, and **xml** columns. Using this method on any other data types will cause an exception to be thrown. ## See Also [getNClob Method (SQLServerResultSet)](../../../connect/jdbc/reference/getnclob-method-sqlserverresultset.md) [SQLServerResultSet Members](../../../connect/jdbc/reference/sqlserverresultset-members.md) [SQLServerResultSet Class](../../../connect/jdbc/reference/sqlserverresultset-class.md)