SQL Server:
select COUNT(*) AS 数据库总表数 from sysobjects where xtype='U'
select count(*)AS 总视图数 from sysobjects where xtype='v'
select count(*)AS 总存储过程数 from sysobjects where xtype='p
SQL Server:
select COUNT(*) AS 数据库总表数 from sysobjects where xtype='U'
select count(*)AS 总视图数 from sysobjects where xtype='v'
select count(*)AS 总存储过程数 from sysobjects where xtype='p