Removing database holes

  • Guys,

    Is there a way to compact the database? We do many inserts and deletes, where #inserts approximately equals #deletes,and yet the database size constantly keeps growing. I feel like there are a lot of holes in the database file, which, if gotten rid of, should decrease the overall database file size.

    I know that I can shrink the database file(s), but not sure if it is same as compacting it.

    Any ideas?

    Thanks a lot

  • Hi

    there is nothing like compacting a db in that sense of the word. U can do frequent log backups to keep the log file size in check. Also you can move old data not used to another database.

    "Keep Trying"

  • I actually found out that this can be done by using: DBCC DBREINDEX

    Thanks

  • That can help with internal fragmentation and provide some speed gains.

    However, don't shrink the db. That undoes what you do with reindexing.

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

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