Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table Row Count List
Message
De
25/05/2007 09:27:21
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Table Row Count List
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01228470
Message ID:
01228470
Vues:
57
I'd like to write a query to list the tables in a DB and the row count for each table

I got as far as SELECT name FROM sysobjects WHERE xtype = 'U'

That yields a nice list of the tables in the DB. I've tried to write a UDF using the table name as a parameter, that would return the row count, and can't figure out to get that UDF to work

Any ideas?
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform