1> DECLARE @FullName VarChar(25) 2> SET @FullName = 'www.java2s.com' 3> SELECT SUBSTRING(@FullName, CHARINDEX('.', @FullName) + 1, LEN(@FullName)) 4> GO ------------------------- java2s.com (1 rows affected) 1> 2>