Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Nomber of records in each table
Message
 
À
26/12/2008 16:10:52
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01369750
Message ID:
01369798
Vues:
9
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform