Finding position of a byte sequence within the column referenced by an image locator

Use sp_drv_varbinary_charindex which accesses the Transact-SQL function charindex.

Syntax

sp_drv_varbinary_charindex byte_sequence, locator, start, position

Input Parameters

Output Parameters

position – an integer specifying the starting position of search_string in the LOB column referenced by locator.

Result Set

None.