;with doubleletters(combo) as ( select top 26 replicate(char(96 + row_number() over (order by [object_id])), 2) combo from sys.objects ) select e.* from dbo.names e cross apply ( select top 1 1 r from doubleletters where patindex('%' + combo + '%', e.name) > 0 ) tvf;
No one has followed this question yet.