Here is some sample code:
if object_id('#recursive_example','U') is not null
drop table #recursive_example
create table #recursive_example (
owner varchar(10),
owner_type varchar(10),
item_type varchar(10),
item_name varchar(10)
)
insert into #recursive_example values ('REC1','RECORD','FIELD','FLD1')
insert into #recursive_example values ('REC1','RECORD','FIELD','FLD2')
insert into #recursive_example values...