Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 how to find table with maximum rows in my databas

Author  Topic 

vishalj
Starting Member

32 Posts

Posted - 2006-05-22 : 11:42:02
how do i find out which table has the maximum rows in it
ordered by rowcount desc

nr
SQLTeam MVY

12543 Posts

Posted - 2006-05-22 : 11:47:57
select object_name(id), rows from sysindexes where indid in (0,1) order by rows desc

You might need to dbcc updateusage first though.


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -