Ask the Expert

Determining the physical space occupied by database tables

How is the easiest way to know how much physical storage the tables in my database occupy ? I ask this because if I see the space used in the properties of the database (with Enterprise Manager), I see much more than than what I see using "sp_spaceused <table>" which I think doesn't say the truth. My database has about 400Gb allocated and 360Gb used. Can you tell me what is the right way to have the space occupied for each table in my database without having surprises when I go to see the REAL space occupied (which is always much more)?

    Requires Free Membership to View

Open up the stored procedure sp_spaceused. It will give you more than enough information to answer your question.

 

For More Information

This was first published in July 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: