Re: Shrinking a logfile -
- From: pbrill1 <pbrill1@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 9 Dec 2008 16:12:02 -0800
Thank you, both Hugo and bass_player, for your explanations. I these address
the questions that I was struggling with in the reading material. The
warning about using shrinkfile is especially helpful, since the reading
material that I've been looking at does not highlight this enough.
Thanks,
--
pbrill1
"Hugo Kornelis" wrote:
On Mon, 8 Dec 2008 15:13:01 -0800, pbrill1 wrote:.
Question from a new DBA-in-training, trying to develop a
best procedure' to shrink logfiles when they grow too large.
Hi pbrill1,
Andrew already mentioned it in his reply to your other thread, but I
think it's worth highlighting a bit more - shrinking database files
should never be part of your regular practice.
Sure, if for whatever reason a file has grown to way more than its
normal working size and you need to reclaim the space, then you can
consider shrinking. But in all other cases, just don't do it. If no
specific reason for extra growth is identified, or if you know the
reason and aso know it will probably happen again, then SQL Server
obviously needs the file to be that big. Shrinking it now will only
force SQL Server to grow the file again at a later time. This is a
relatively slow operation, so it will hurt performance. And if you
repeat it a few times, you'll end up with severely fragmented files,
which are also detrimental to overall performance.
See http://www.karaszi.com/SQLServer/info_dont_shrink.asp for more
information.
--
Hugo Kornelis, SQL Server MVP
My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
- References:
- Shrinking a logfile -
- From: pbrill1
- Re: Shrinking a logfile -
- From: Hugo Kornelis
- Shrinking a logfile -
- Prev by Date: Re: Need to learn how to develop a Full Backup plan strategy with
- Next by Date: Re: Will this shrinkfile method work?
- Previous by thread: Re: Shrinking a logfile -
- Next by thread: Will this shrinkfile method work?
- Index(es):
Relevant Pages
|