sql server 2005 统计数据库中用户表总数

select count(*) from sysobjects where type='u' and status>=0
原文地址:https://www.cnblogs.com/chuncn/p/1389532.html