统计Sql Server2005中数据库中的每张表的记录数
USE SilverlightDemo--SilverlightDemo为你所在的数据库 GO select b.[name] '表名',max(a.rowcnt) '记录数' from sysindexes a join sys.objects b on b.object_id=a.id where b.type='U' group by b.[name]
USE SilverlightDemo--SilverlightDemo为你所在的数据库 GO select b.[name] '表名',max(a.rowcnt) '记录数' from sysindexes a join sys.objects b on b.object_id=a.id where b.type='U' group by b.[name]