Solved

reserved space on an sql server table

Posted on 2009-03-31
3
443 Views
Last Modified: 2012-05-06
Hi Folks,

In sql server 2005 There is a standard report called Disk Usage by top tables. There is a column in this report called reserved space KB (of a table). What determines how much space is reserved for a database and can it be modified?
0
Comment
Question by:david_32
  • 2
3 Comments
 
LVL 9

Expert Comment

by:cdaly33
ID: 24035950
I believe its based on previous space allocated for data that was in the table at one point.  If you want to get rid of some of the space the easiest way it to do a db file shrink.  Usually though, unless you really really need the space back its best just to leave it alone.  MS SQL decides how much room it thinks it needs for table.
0
 

Author Comment

by:david_32
ID: 24036052
how come for a new database the reserved space is not 0?
0
 
LVL 9

Accepted Solution

by:
cdaly33 earned 500 total points
ID: 24038796
There is a growth percentage put in place when creating a new database.  In SQL Server Management Studio when you create a new database there is a field for the initial size and one for the Autogrowth of the database.  In this way SQL doesn't need to keep expanding the database every time a record is inserted.  As a best practice a DBA should create a database at an initial size that is around what the anticipated size of the database will be.  This size is usually determined by experience with other databases and guessing at how much growth the new database will have.
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now