3

We were saving unnecessary logging data in our database. One table grew to 1 million records, 99% of that is now gone.

We have db size of 40gb and freespace of 24gb.

Whats the best way to regain that space (and consequently reduce the size of our back ups).

Our recovery mode is simple. Can we just use the auto shrink setting in management studio ?

Edit

Probably worth noting that there was no need to shrink the DB to reduce the size of backup. Just removing the data is good enough. Our backups are now 9gb.

1 Answer 1

4

Yes, right click the database -> tasks -> shrink -> database.

3
  • lol, its auto shrink that I should avoid right. ? I don't need to detach or anything ? Mar 29, 2012 at 14:12
  • 1
    Normally, shrinking a production db has consequences. Brent Ozar is likely to appear from nowhere and slap you upside the head. But what were talking about here is a change in the nature of application, so I think it's warranted.
    – Joel Coel
    Mar 29, 2012 at 14:26
  • Yep, no need to detach or anything like that. Always make sure you have backups just as with anything else.
    – murisonc
    Mar 29, 2012 at 14:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .