Auto Shrink in SQL 2005

Posted on 2009-02-16
Medium Priority
Last Modified: 2012-05-06
Hi Experts
Few questions
1. What is auto shrink option in SQL 2005?
2. How do I disable it?
3. What is the advantage and disadvantage of auto shrink?

Question by:yak01
1 Comment
LVL 39

Accepted Solution

BrandonGalderisi earned 500 total points
ID: 23655812
1. What is auto shrink option in SQL 2005?
Automatically shrinks the database at a scheduled interval.

2. How do I disable it?
It shouldn't be enabled by default.  To disable:
Right Click the database > properties.
Choose Options
In the list, find "Auto Shrink".  Ensure it is set to false.

3. What is the advantage and disadvantage of auto shrink?
Advantage:  If you have LOW disk space, and your database should normally be small but OCCASIONALLY balloons for a short period of time, it can help recover the space.
Disadvantages: Physical File Fragmentation.  When the database is growing and shrinking, it will fragment on the physical disk.  This is in addition to index fragmentation.  What you end up with is a database that is spread all across your disk and WINDOWS can't access if efficiently.  

If you set your database size correctly, it should never need to be shrunk.  And growth can be managed by monitoring free space.

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

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Suggested Courses

862 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