DECLARE @strvalue varchar(20) = 'SDADH/SDKDS/SD/UIO-123/WEA/456' SELECT REVERSE(SUBSTRING(REVERSE(@strvalue),0,CHARINDEX ('/',REVERSE(@strvalue))))