Home Forums SQL Server 2005 Development user tables in database where the number of rows is less than 100 RE: user tables in database where the number of rows is less than 100
Abhijit More
SSCertifiable
Points: 6897
More actions
January 13, 2009 at 12:42 am
#925680
select distinct object_name(object_id) as Table, rows
from sys.partitions where index_id >= 1
and object_name(object_id) not like 'sys%'
and rows > 100
Abhijit - http://abhijitmore.wordpress.com