MS SQL 查看一个数据库中所有表的行数
1: SELECT a.name, b.rows
2: FROM sysobjects AS a INNER JOIN
3: sysindexes AS b ON a.id = b.id
4: WHERE (a.type = 'u') AND (b.indid IN (0, 1))
5: ORDER BY b.rows DESC
作者:sun8134
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。