Results 1 to 4 of 4

Thread: Database Size

  1. #1
    Join Date
    Jul 2004
    Posts
    268

    Unanswered: Database Size

    Hi All,

    Will the database size decrease once I delete data from the audit tables?

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    no. you have to shrink the files. this may cause fragmentation, so after that you have to reindex.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    Jul 2004
    Posts
    268
    How to determine what the new database size should be? Let's say the database size currently is 15 Gbs and I removed 5 million rows from the auditing table.

    And would you use dbcc shrinkfile or dbcc shrinkdatabase command?

  4. #4
    Join Date
    Jul 2003
    Location
    San Antonio, TX
    Posts
    3,662
    In Management Studio righ-mouse click on the database, select Reports/Standard Reports/Disk Usage.

    dbcc shrinkfile, always!
    "The data in a record depends on the Key to the record, the Whole Key, and
    nothing but the Key, so help me Codd."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •