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' --所有表

posted @ 2022-12-05 16:04  KeepDoIT  阅读(263)  评论(0编辑  收藏  举报