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

Use sp_drv_image_locator_charindex which accesses the Transact-SQL function charindex.

Syntax

sp_drv_image_locator_charindex sequence_locator, locator, start, start_position

Input Parameters

Output Parameters

start_position – an integer specifying the starting position of the byte sequence in the LOB column referenced by locator.

Result Set

None.