Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
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: 1376 | Views in the last 30 days: 1
 
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