Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql server 2000, how much a table weighs ? 1

Status
Not open for further replies.

tempo1

Programmer
Feb 20, 2007
118
0
0
Hi everyone
In order to free disk space i need to identify tables and databases on the disk.
Can i know a table's size (in bytes, not rows !) and database's size through system files in the SQL SERVER ? Any other resource to learn about my databases size ?
Can anyone tell me what is the extension of a table/database on the disk ?
Thanks
 
In query analyzer, run:

[tt][blue]sp_helpfile[/blue][/tt]

This will tell you which files are associated with each database and what the size of the files are.

To get the size of each table, run this:

[tt][blue]sp_msforeachtable 'sp_spaceused [?]'[/blue][/tt]

-George

"the screen with the little boxes in the window." - Moron
 
You're welcome, a lot! [smile]

-George

"the screen with the little boxes in the window." - Moron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top