You want to use a substring starting from the index after your target and occupy the entire string less than the charindex of your target.
declare @string varchar(1000) set @string = 'xxxxxxxxyzzzzzzzz' select substring(@string, charindex('y', @string) +1, len(@string) - charindex('y', @string)) zzzzzzzz
In this case, I want everything after y
cmsjr source share