SQL查看所有表大小的语句

SELECT a.name, b.rows
FROM sysobjects AS a INNER JOIN
sysindexes AS b ON a.id = b.id
WHERE (a.type = 'u') AND (b.indid IN (0, 1))
ORDER BY b.rows DESC

posted @ 2019-11-20 16:54  南国之恋  阅读(627)  评论(0编辑  收藏  举报