If all the tables have primarykey's you can query sysindexes and check rows column to get that info.Here's a sample:SELECT [TableName] = so.name, [Table id]=so.id, [RowCount] = MAX(si.rows) FROM sysobjects so, sysindexes si WHERE so.xtype = 'U' AND si.id = OBJECT_ID(so.name) GROUP BY so.name,so.id ORDER BY 2 DESC
You have to do COUNT(*) for tables that dont have PK. There's also sp_spaceused that gets you an approximate info.Dinakar Nethi************************Life is short. Enjoy it.************************http://weblogs.sqlteam.com/dinakar/