Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Product Name

SQL Server

Event ID


Event Source




Symbolic Name


Message Text

CREATE DATABASE failed. Primary file must be at least %d MB to accommodate a copy of the model database.

SQL Server creates a database by making a copy of the model database. Then SQL Server renames the copy, and enlarges the new database to the requested size. In this case, the user tried to create a database smaller than the model database. The operation failed because the copy of the model database could not fit on the primary data file, because the file was smaller than the model database.

Create the database by using a larger database file size. Then shrink the database if you want by using SQL Server Management Studio, or the DBCC SHRINKDATABASE statement.