select o.name,s.name from sysobjects o, syssegments s, sysindexes i where i.id = o.id and i.indid < 2 and i.segment = s.segment and o.type= ‘U‘
select o.name,s.name from sysobjects o, syssegments s, sysindexes i where i.id = o.id and i.indid < 2 and i.segment = s.segment and o.type= ‘U‘