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.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Table size

Author  Topic 

PatMc
Starting Member

16 Posts

Posted - 2010-04-09 : 15:41:16
Hi all,

I have been asked to figure out which tables and how much they are growing on a daily basis. Since my Sql skills are lacking i was wondering if there is a easy way with a simple query to find the sizes of all the table in a database.

Thanks

Pat

PatMc
Starting Member

16 Posts

Posted - 2010-04-09 : 16:07:01
Thanks any way I have found the query to do it. Here it is if anyone needs it.

EXEC sp_MSforeachtable@command1="EXEC sp_spaceused '?'"

Pat
Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2010-04-09 : 16:15:31
Could also try :this also has percentage breakdowns
http://www.quicksqlserver.com/2010/04/table-sizes-and-percentages.html

Jack Vamvas
--------------------
http://www.ITjobfeed.com
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2010-04-09 : 16:16:28
This should do what you want.

Script to analyze table space usage
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=61762




CODO ERGO SUM
Go to Top of Page
   

- Advertisement -