dbTalk Databases Forums  

autogrowth best practice

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss autogrowth best practice in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
m
 
Posts: n/a

Default autogrowth best practice - 10-20-2010 , 02:22 AM






Hello everybody,

does anyone know what is the best practice for setting *.mdf autogrowth
parameter?
Database is now about 4GB big and shold be bigger for about 200MB every
year.

If I put 10% is that correct?

Regards and thanks in advice

Reply With Quote
  #2  
Old   
Iain Sharp
 
Posts: n/a

Default Re: autogrowth best practice - 10-20-2010 , 05:14 AM






On Wed, 20 Oct 2010 09:22:13 +0200, "m" <miroslavsi (AT) gmail (DOT) com> wrote:

Quote:
Hello everybody,

does anyone know what is the best practice for setting *.mdf autogrowth
parameter?
Database is now about 4GB big and shold be bigger for about 200MB every
year.

If I put 10% is that correct?

Regards and thanks in advice

The general answer is that no-one likes autogrowth. It does it too
late. (i.e. when the database is full) rather than keeping free space
available.

There are a number of scripts out there to automatically resize the
database

I use the one from here
http://www.sqlservercentral.com/scripts/T-SQL/67185/

(SQL 2005)

Here's the SQL 2000 version

http://www.sqlservercentral.com/scripts/T-SQL/67186/

This creates a stored procedure to grow the databases, and you then
schedule this with Agent to run every week or month or whatever, it
just tops off the database file when necessary.

Iain

Reply With Quote
  #3  
Old   
Hugo Kornelis
 
Posts: n/a

Default Re: autogrowth best practice - 10-20-2010 , 09:39 AM



On Wed, 20 Oct 2010 09:22:13 +0200, m wrote:

Quote:
Hello everybody,

does anyone know what is the best practice for setting *.mdf autogrowth
parameter?
Database is now about 4GB big and shold be bigger for about 200MB every
year.

If I put 10% is that correct?

Regards and thanks in advice

In addition to the reply by Iain Sharp - the best practice is to
manually grow the databases during off hours, and in large chunks at
once. Repeatedly growing in small chunks increases fragmentation.

--
Hugo Kornelis, SQL Server MVP
My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis

Reply With Quote
  #4  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: autogrowth best practice - 10-21-2010 , 05:04 PM



m (miroslavsi (AT) gmail (DOT) com) writes:
Quote:
does anyone know what is the best practice for setting *.mdf autogrowth
parameter?
Database is now about 4GB big and shold be bigger for about 200MB every
year.
In that case, make the database 6 GB, and you don't have to worry about
growth for a decade. Well, you should probably monitor the space usage,
as trends could change.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.