Solved

reserved space on an sql server table

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 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

11 Experts available now in Live!

Get 1:1 Help Now