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

stay hungry stay foolish!
原文地址:https://www.cnblogs.com/chongyao/p/6027500.html