The ‘SQL server error 1101’ occurs due to space issues.
Here at Bobcares, we have seen several such SQL related issues as part of our Server Management Services for web hosts and online service providers.
Today we’ll take a look at the cause for this error and see how to fix it.
Why does ‘SQL server error 1101’ occur
Generally, this error appears when the database engine is not able to allocate any new pages to the database due to insufficient disk space.
For instance, the error appears as below:
~~
Error: 1101, Severity: 17, State: 2
Could not allocate a new page for database ‘DBNAME’ because of insufficient disk space in the filegroup ‘PRIMARY’. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting auto-growth on for existing files in the filegroup.
~~
Here are the different reasons for this error to occur.
- The database drives are running out of enough space.
- You have set a restriction for the database maximum file size or have put size limits for files.
- Autogrowth is disabled for database files.
How we fix ‘SQL server error 1101’ error
This error occurs due to space issues. So in order to fix this error, we need to make some space for the database files to grow. However, this error can vary depending upon the reason for the error to occur. Sometimes, if any restriction is set for the database maximum file size then this error occurs. In some cases, the error may occur because there is no space left in the drives.
Now let’s see the suggestions our Support Engineers provide to our customers to resolve this error.
1. Increase Database File Size Limits or remove any restrictions
Even though there is enough drive space for the database, you still receive this error. It happens because there is a limit set for the Database File Size. In order to fix this error, you can either increase the size limit or remove the restrictions. Also, you can set database filesize to unlimited size. Here the database will grow till the database file drive limit.
2. Database Drives space
Another reason for the error is the disk drive running out of space where you have your database files. Here are the 4 different options to overcome this problem.
- Add an additional database file to some other disk where there is enough space.
- Add an additional Disk Space.
- Move additional/unwanted files from your existing database drives.
- Move or Drop/Purge any unwanted data (like table/indexes).
3. Enabling Autogrowth
If you have your auto-growth setting disabled then you will receive this error message. Simply enabling it by launching the database property window will fix the error.
For that, click on three dots next to each database files in the column “Authogrowth/Maxsize” and click at the enable auto-growth checkbox.
Moreover, you can use the ALTER statement to enable the database auto-growth setting. Here is the ALTER command:
ALTER DATABASE [DBName] MODIFY FILE ( NAME = N’DBName_Data’, FILEGROWTH = 10000KB )
Note: Ensure to run this ALTER statement for each database file separately.
Under the NAME section, pass the logical filename of your database file.
[Need any further assistance in fixing SQL errors? – We’re available 24*7]
Conclusion
In short, this error arises while changing or viewing the values of any advanced server configuration option. Today, we saw the suggestions our Support Engineers provide to our customers to fix this error.
0 Comments