统计 sql server 数据库 各表数据行数的方法
spooking 归属分类: 杂谈 评论数: 0 个
select schema_name(t.schema_id) as [Schema], t.name as TableName,i.rows as [RowCount] 
from sys.tables as t, sysindexes as i 
where t.object_id = i.id and i.indid <=1
order by TableName