MS SQL Server 统计用户表数据量的查询语句
SELECT a.name, b.rows
FROM sysobjects a WITH(NOLOCK)
JOIN sysindexes b WITH(NOLOCK)
ON b.id = a.id
WHERE a.xtype = 'U ' AND b.indid IN (0, 1)
ORDER By b.rows DESC
MS SQL Server 统计用户表数据量的查询语句
SELECT a.name, b.rows
FROM sysobjects a WITH(NOLOCK)
JOIN sysindexes b WITH(NOLOCK)
ON b.id = a.id
WHERE a.xtype = 'U ' AND b.indid IN (0, 1)
ORDER By b.rows DESC
转载于:https://my.oschina.net/janl/blog/517881