with TableRecord(TableName,RecordCount) as
(
select o.name,i.rows
from sysobjects o,sysindexes i
where o.id=i.id and o.Xtype='U' and i.indid<2
)
select * from TableRecord order by tablename
转载于:https://www.cnblogs.com/SunsetAndTea/archive/2013/04/11/3014463.html