where @searchPhraseis currently an NVARCHAR(1000) and holds the result of a function call that puts together the full search phrase. This all works fine as is but a long search string will increase ...