统计 SQLServer中有多少张表

use myDBName     --欲统计的数据库
select count(*) as TableCount
from sysobjects
where type='u' and status>=0
posted @ 2015-10-10 20:53  Sam萨姆  阅读(253)  评论(0)    收藏  举报