查询SqlServer中每张表的记录数

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

posted @ 2015-03-23 17:07  Dupont  阅读(551)  评论(0编辑  收藏  举报