count rows for each table

Costas

Administrator
Staff member
snap171.png


JavaScript:
select t.name TableName, i.rows Records
from sysobjects t, sysindexes i
where t.xtype = 'U' and i.id = t.id and i.indid in (0,1)
order by Records DESC;
 
Top