Finding position of a search string within the unitext column referenced by a locator

Use sp_drv_univarchar_charindex which accesses the Transact-SQL function charindex.

Syntax

sp_drv_univarchar_charindex search_string, 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.