SqlServer查询数据库中表、视图、存储过程数量

--sql server 数表:
select count(1) from sysobjects where xtype='U'
--数视图:
select count(1) from sysobjects where xtype='V'
--数存储过程
select count(1) from sysobjects where xtype='P'

posted @ 2014-09-27 20:48  东少  阅读(576)  评论(0)    收藏  举报