Here’s another one of my global changes. This one sets-up ‘Model’, which is the template for all databases created in the future.
-- AutogrowthDefault.sql -- first examine the current settings select Name, size*8/1024 [SizeMB], case is_percent_growth when 1 then convert(varchar(50), growth) + ' %' when 0 then convert(varchar(50), growth*8/1024) + ' MB' end AutoGrowth from master.sys.master_files where db_name(database_id) = 'Model' order by [type]; ----set Initial-Size to best-practice ALTER DATABASE [model] MODIFY FILE (NAME = N'modeldev', SIZE = 256MB); ALTER DATABASE [model] MODIFY FILE (NAME = N'modellog', SIZE = 128MB); ---- set Autogrowth to best-practice ALTER DATABASE [model] MODIFY FILE (NAME = N'modeldev', FILEGROWTH = 256MB); ALTER DATABASE [model] MODIFY FILE (NAME = N'modellog', FILEGROWTH = 128MB);