--- title: "position Method (java.lang.String, long) (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: 46d4beec-831a-449f-98b6-322a80cc499a author: David-Engel ms.author: v-daenge --- # position Method (java.lang.String, long) (SQLServerNClob) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Retrieves the character position at which the specified substring *searchstr* appears in the **NCLOB** value represented by this **NClob** object. ## Syntax ``` public long position(java.lang.String searchstr, long start) ``` #### Parameters *searchstr* The substring for which to search. *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.NClob interface. ## See Also [position Method (SQLServerNClob)](../../../connect/jdbc/reference/position-method-sqlservernclob.md) [SQLServerNClob Methods](../../../connect/jdbc/reference/sqlservernclob-methods.md) [SQLServerNClob Members](../../../connect/jdbc/reference/sqlservernclob-members.md) [SQLServerNClob Class](../../../connect/jdbc/reference/sqlservernclob-class.md)