Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
chris_wood99
Yak Posting Veteran
70 Posts |
Posted - 2005-07-07 : 07:12:56
|
| Has anyone got a stored procedure that lists all the tables in a db and the number of rows and space consumed? |
|
|
robvolk
Most Valuable Yak
15732 Posts |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-07-07 : 07:18:40
|
| sp_spaceused 'tablename' will show you table space detailsFor getting number of rows use select count(*)Otherwise you need to look for sysindexes tableMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|