Solved

reserved space on an sql server table

Posted on 2009-03-31
3
448 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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 query help 2 62
Find data in a column which is not in  a date format 29 36
Query to return total 6 24
Addition to SQL for dynamic fields 6 56
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…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

685 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