select b.name ,a.text from syscomments a,sysobjects b where charindex('clicknum',a.text)>0 and object_id(b.name)=a.id and b.xtype in('P','TR')