Finding position of a string referenced by a text locator within the text Column referenced by another locator

Use sp_drv_textlocator_charindex which accesses the Transact-SQL function charindex.

Syntax

sp_drv_textlocator_charindex search_locator, locator, start, position

Input Parameters

Output Parameters

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

Result Set

None.