DB autogrew when it should not have

  • I have encountered something very strange this weekend, which I have not been able to find an answer for yet. I have a Prod DB that was around 36 GB in size with about 5 GB of free space, so 31 GB used and 5 GB free space allocated to the MDF. After the reindexing job this weekend, looks like the DB acquired an additional approx 4GB of space. Now I have a DB that is 40GB in size with of which 9GB is free. I am not sure how that happened considering I have the autogrow set to 10%. Before I begin thinking of shrinking the DB( Which is always fun :), I'd like to try and get a reason as to why this happened. If anyone has encountered a similiar problem, insight to this issue is greatly appreciated

  • Hi,

    if you have the Autogrow set to 10%, then it seems to me that it grew just as much as it is allowed to in one jump - original size 36GB, 10% is 3.6GB - that makes it almost 40GB now. Apparently during reindexing or some other job your database ran out of space (used the free 5GB and it was not enough) and expanded by the amount set in Autogrow... Or did I miss something?

    Our DB was 25GB two years ago and has grown to 90GB over the time, so I'm not at all surprised at what happened with your Prod. DB .

    Edited by - Vladan on 09/15/2003 09:36:58 AM

  • Reindexing can eat up some space (temporarily) and easily cause the db to grow.

    Steve Jones

    sjones@sqlservercentral.com

    http://www.sqlservercentral.com/columnists/sjones

    The Best of SQL Server Central.com 2002 - http://www.sqlservercentral.com/bestof/

    http://www.dkranch.net

  • Steve is right, reindexing a clustered index can require 120% of the space allocated to the index.

    Hope this helps

    Phill Carter

    --------------------

    Colt 45 - the original point and click interface

    --------------------
    Colt 45 - the original point and click interface

  • Thanks guys - appreciate the feedback

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply