SQLSERVER查询某个数据库有几张表

2026年09月16日 21:21
有1个网友回答
网友(1):

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’