Re: Time to shrink a database
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Thu, 13 Apr 2006 21:22:53 +0000 (UTC)
pb648174 (google@xxxxxxxxxxx) writes:
So there isn't some source out there that has the script posted on the
net? If this is something that should be done for every single
database, why should every person write their own and go through a
development bug fix cycle to figure out what they are doing wrong? I'm
worried about throwing something together and it causing more problems
than it solves (right now we have no problems as far as I know related
to indexes or fragmentation for databases in use for years).
I didn't say that there is not anything publicly available for this, but
I was too lazy to start searching for something. As a matter of fact the
code that we use to get the tables with 30% more fragmentation was some-
thing that SQL Server MVP Andrew Kelly posted to
microsoft.public.sqlserver.tools once. (I believe that it was that news-
group, but I could be wrong.)
SQL Server comes with maintenance plans where you can set this up,
and probably get some default. But the problem is, that this is not a
case of one size fits all. There are several factors involved: how
much data is inserted? updated? deleted? What availability requirements
do you have? Do you need to use GUIDs etc.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: Time to shrink a database
- From: pb648174
- Re: Time to shrink a database
- References:
- Time to shrink a database
- From: hallpa1@xxxxxxxxx
- Re: Time to shrink a database
- From: Erland Sommarskog
- Re: Time to shrink a database
- From: hallpa1@xxxxxxxxx
- Re: Time to shrink a database
- From: pb648174
- Re: Time to shrink a database
- From: Erland Sommarskog
- Re: Time to shrink a database
- From: pb648174
- Time to shrink a database
- Prev by Date: How Do I Restore A Warm Backup If My Primary Server Fails?
- Next by Date: Re: Smalldatetime comparisons with non-clustered index
- Previous by thread: Re: Time to shrink a database
- Next by thread: Re: Time to shrink a database
- Index(es):
Relevant Pages
|