--- title: "truncate Method (SQLServerClob) | 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: - "SQLServerClob.truncate" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: ea3b2a03-387e-49d7-a4d6-ca6a6a354c90 author: David-Engel ms.author: v-daenge --- # truncate Method (SQLServerClob) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Truncates the CLOB to the given length. ## Syntax ``` public void truncate(long len) ``` #### Parameters *len* The length, in characters, to which the CLOB should be truncated. ## Exceptions java.sql.SQLException ## Remarks This truncate method is specified by the truncate method in the java.sql.Clob interface. ## See Also [SQLServerClob Methods](../../../connect/jdbc/reference/sqlserverclob-methods.md) [SQLServerClob Members](../../../connect/jdbc/reference/sqlserverclob-members.md) [SQLServerClob Class](../../../connect/jdbc/reference/sqlserverclob-class.md)