Solved

reserved space on an sql server table

Posted on 2009-03-31
3
445 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sql Data via Excel--performance issues 2 56
How to check data in sql table 11 51
SQL Server Degrading on Write 13 70
Please help for the below sql query. 1 27
Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

792 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