SQL Server 2016 – Model database default settings

Hi Friends,

Many improvements and new features are there in the SQL Server 2016. One of that change is about the model database default settings in SQL Server 2016. We know that the model database plays an important role just like a template while we are creating a new database over that instance. By default our new database contains all the settings of the model database, like recovery model, file size, file growth etc.

One of the most important setting is file growth. Which is better, growth in terms of fixed size (in MB or GB) or growth in percentage?  For log files, It’s always better to have all the VLFs of same size rather than multiple VLFs of different size. If we wants, all of our VLFs in the same size, then we always change the growth setting from the default 10% to a specific value in MB or GB (depends on the behavior of transactions or workload).

If you are selecting the growth in terms of percentage. Let say, the data file size is small, then 10 percent will be small. Think about the situation when your data file size is 512 GB or 1 TB then 10 percent will not be small. You can see in the below image, that data file growth setting in SQL Server 2014 is 1 MB. Which is very small and can lead to a large number of auto growth events. These are the cases where people are using the default settings and doesn’t pre-allocate the space to database files.

In SQL Server 2016, Microsoft has made changes to model database default file size and their growth setting as mention in below images (one from SQL Server 2014 and another from SQL Server 2016):

SQL Server 2014: Model database properties

Model database default settings

   

SQL Server 2016: Model database properties

Model database default settings

HAPPY LEARNING!

Regards:

Prince Kumar Rastogi

Like us on FaceBook | Join the fastest growing SQL Server group on FaceBook

Follow Prince Rastogi on Twitter | Follow Prince Rastogi on FaceBook

   

About Prince Rastogi

Prince Rastogi is working as Database Administrator at Elephant Insurance, Richmond. He is having more than 8 years of experience and worked in ERP Domain, Wealth Management Domain. Currently he is working in Insurance domain. In the starting of his career he was working on SQL Server, Internet Information Server and Visual Source Safe. He is post graduate in Computer Science. Prince is ITIL certified professional. Prince likes to explore technical things for Database World and Writing Blogs. He is Technical Editor and Blogger at SQLServerGeeks.com. He is a regular speaker at DataPlatformDay events in Delhi NCR. He has also presented some in depth sessions about SQL Server in SQL Server Conferences in Bangalore.

View all posts by Prince Rastogi →

Leave a Reply

Your email address will not be published.