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
时间: 2024-11-04 19:41:10
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