SELECT b.name AS tablename, a.rowcnt AS datacount FROM sysindexes a, sysobjects b WHERE a.id = b.id AND a.indid < 2 AND objectproperty(b.id, 'IsMSShipped') = 0 ORDER BY datacount DESC 来源:https://www.cnblogs.com/56982173513871739239lex/p/11871073.html 标签 数据库 mssql