SELECT OBJECT_NAME(ii.id) TableName ,rows FROM sysindexes ii INNER JOIN sysobjects oo ON ( oo.id = ii.id AND oo.xtype = ‘U ‘) WHERE ii.indid < 2 ORDER BY rows desc ;
SQL SERVER 查询表的行数
原文:https://www.cnblogs.com/JinweiChang/p/10592680.html