Terry, I really like this one:
exec sp_MSforeachtable 'select count(*) "?" from ?'
Output looks like this (snipped a bit):
name rows reserved data
APAdjust 63902 57736 KB 56656 KB ...
P_Balances 4446 4544 KB 4440 KB ...
etc
etc
Nice...
Can't get Terry's 'Space' suggestion to work (Query Analyzer):
exec sp_MSforeachtable 'exec sp_spaceused ?'
I get this error:
Server: Msg 170, Level 15, State 1, Line -1074292529
Line 1: Incorrect syntax near '.'.
Also, Dave, how do you weave your exec sp_MStablespace N'[dbo].[tabname]' into...
Is there a way in Enterprice Manager or Query-analyzer (or ??) to get a Simple List of All the Tables in a Database and the number of rows in each Table? (icing would be to also see K-bytes consumed by each table). I'm running Solomon IV Financials, and its database has about 200 Tables. I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.