select * from sysobjects where xtype='TR' --所有触发器
select * from sysobjects where xtype='P' --所有存储过程
select * from sysobjects where xtype='V' --所有视图
select * from sysobjects where xtype='U' --所有表