Transact-SQL reference for the SUBSTRING function. This function returns a portion of a specified character, binary, text, or image expression.