sql 查询当前数据库所有表格以及所有表格数据条数

select b.name as tablename ,
a.rowcnt as datacount
from sysindexes a ,
sysobjects b
where a.id = b.id
and a.indid < 2
and objectproperty(b.id, 'IsMSShipped') = 0

posted @ 2016-11-03 17:35  雨V幕  阅读(2797)  评论(0编辑  收藏  举报