--- title: "position Method (byte, 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: - "SQLServerBlob.position (byte[], long)" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 787412c2-4342-49c8-9ca2-7a9ddcd3277c author: David-Engel ms.author: v-daenge --- # position Method (byte, long) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Returns the position of a specified pattern in the BLOB based on the given **byte** array pattern and starting index. ## Syntax ``` public long position(byte[] bPattern, long start) ``` #### Parameters *bPattern* The pattern to search for. *start* The start index to search at. ## Return Value A **long** value of the position where the pattern was found, or -1 if it was not found. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This position method is specified by the position method in the java.sql.Blob interface. ## See Also [position Method (SQLServerBlob)](../../../connect/jdbc/reference/position-method-sqlserverblob.md) [SQLServerBlob Methods](../../../connect/jdbc/reference/sqlserverblob-methods.md) [SQLServerBlob Members](../../../connect/jdbc/reference/sqlserverblob-members.md) [SQLServerBlob Class](../../../connect/jdbc/reference/sqlserverblob-class.md)