--- title: "position Method (java.sql.Clob, 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: - "SQLServerClob.position (java.sql.Clob, long)" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: b2fb34d5-1d34-4764-a795-712d9c6aa313 author: David-Engel ms.author: v-daenge --- # position Method (java.sql.Clob, long) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Returns the character position of the specified CLOB object in the CLOB based on the given starting position. ## Syntax ``` public long position(java.sql.Clob searchstr, long start) ``` #### Parameters *searchstr* The substring to search for. *start* The position at which to begin searching. The first position is 1. ## Return Value The position at which the substring appears, or -1 if it is not present. The first position is 1. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This position method is specified by the position method in the java.sql.Clob interface. ## See Also [position Method (SQLServerClob)](../../../connect/jdbc/reference/position-method-sqlserverclob.md) [SQLServerClob Methods](../../../connect/jdbc/reference/sqlserverclob-methods.md) [SQLServerClob Members](../../../connect/jdbc/reference/sqlserverclob-members.md) [SQLServerClob Class](../../../connect/jdbc/reference/sqlserverclob-class.md)