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