Technical Article

RowCount

,

Run this script to get the row counts of all tables.

SELECT o.name AS "Table Name", i.rowcnt AS "Row Count"
FROM sysobjects o, sysindexes i
WHERE i.id = o.id AND indid IN(0,1) 
AND xtype = 'u' 
AND o.name <> 'sysdiagrams' 
ORDER BY i.rowcnt DESC

Rate

3.33 (6)

You rated this post out of 5. Change rating

Share

Share

Rate

3.33 (6)

You rated this post out of 5. Change rating