Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Nomber of records in each table
Message
 
To
26/12/2008 16:10:52
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01369750
Message ID:
01369798
Views:
8
>>Is there a SQL command I can use to get a list of all the tables along with the number of records in each table in a database?
>>
>>Thanks,
>>Einar
>
>
select rowcnt,object_name(id) 
>from sysindexes
>where indid < 2 and object_name(id) not like 'sys%'
Cetin


Thanks Cetin. I already awarded the solution stars but a single star is comming your way. Your way is a lot less "code"

Thanks,
Einar
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform