获取MSSQL Server中的相关信息(视图、存储过程、触发器、表)

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

posted @ 2019-06-21 16:36  好个男人  阅读(556)  评论(0编辑  收藏  举报