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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Table Size

Author  Topic 

mbevon
Starting Member

41 Posts

Posted - 2003-02-21 : 12:12:19


How could i determine the size of an SQL Server table?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2003-02-21 : 13:13:55
Have you looked at sp_spacedused in BOL?

To get the information for a particular table, just run this:
EXEC sp_spaceused 'Table1' -- change Table1 to the name of your table

You might want to run this first so that it reports the data correctly:
EXEC sp_spaceused @updateusage = 'TRUE'



Go to Top of Page
   

- Advertisement -