Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Get Rid of All Those Pesky 1 MB File Growth DB Files

By Greg Milner,

You have 50 user databases on your server. Model has been left at the default file growth of 1 MB for the data file and so all (or almost all) of these databases have a data file growth set at 1 MB for file growth. Use this to set them all to 10%, at least. Later you can go about tweaking them individually. 

Note: this is to make sure you only get the online databases: AND DATABASEPROPERTYEX(''?'', ''Collation'') IS NOT NULL

Note also this only works on the first data file of each database. I am assuming if you have databases with multiple files on them, whoever created the second data file new what they were doing. 

Total article views: 1326 | Views in the last 30 days: 4
 
Related Articles
FORUM

Database growth

Database growth

FORUM

Database Growth

Database Growth Settings

FORUM

Database file growth settings

Database file growth settings

SCRIPT

All database files growth

Get growth details of database files

SCRIPT

Track database growth 2012/2014

Enhancement to Track database growth By Irwan Tjanterik, 2014/09/23

Tags
 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones