...patindex(@illegalchars, escapedstring), 1), '-'),
whatVowels = ISNULL(whatVowels, '') + ';' + substring(escapedstring, patindex(@illegalchars, escapedstring), 1)
WHERE patindex(@illegalchars,escapedstring) > 1
SELECT @iUpdatedCount = @@ROWCOUNT
END
select * from @myTable