The CREATE DATABASE statement failed. The primary file must be at least x MB to accommodate a copy of the model database

 

ERROR MESAGGE:

“The CREATE DATABASE statement failed. The primary file must be at least x MB to accommodate a copy of the model database.”

EXPLANATION:

In SQL Server, you receive this error when you try to create a database that has data or log files that are smaller in size than the Model database’s data or log files.

SOLUTION:

You can resolve this error by reducing the size of the data and log files of your model database.

Ekrem Önsoy
Author: Ekrem Önsoy

The original article was written in Turkish by Ekrem Önsoy and translated to English by dbtut with the consent of the author. The copyright of the article belongs to the author. The author shall not be liable in any way for any defect caused by translation.

Leave a Reply

Your email address will not be published. Required fields are marked *