--- title: "truncate Method (SQLServerNClob) | 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: b7e8210d-a724-4bae-832a-ae4c63031c9c author: David-Engel ms.author: v-daenge --- # truncate Method (SQLServerNClob) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Truncates the **NCLOB** to the specified length. ## Syntax ``` public void truncate(long len) ``` #### Parameters *len* The length, in characters, to which the **NCLOB** value should be truncated. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This truncate method is specified by the truncate method in the java.sql.NClob interface. ## See Also [SQLServerNClob Methods](../../../connect/jdbc/reference/sqlservernclob-methods.md) [SQLServerNClob Members](../../../connect/jdbc/reference/sqlservernclob-members.md) [SQLServerNClob Class](../../../connect/jdbc/reference/sqlservernclob-class.md)