SQLSERVER 查询系统中的所有表的数量

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

转载于:https://www.cnblogs.com/leon1/p/10564027.html

你可能感兴趣的:(SQLSERVER 查询系统中的所有表的数量)