This function returns a substring starting at the @StartIndex and ending at the end of the string.
Only use this for single values or where performance is not important. Otherwise use built-in SUBSTRING or STUFF for similar functionality.
SUBSTRING(@Text, @StartIndex, LEN(@Text) - @StartIndex + 1)
STUFF(@Text, 1, @StartIndex - 1, '')
Returns a substring starting at the specified index.