How to Fix SQL Server Error 1105 Could Not Allocate Space Because the Filegroup Is Full
SQL Server error 1105 stops writes when a filegroup has no room left. Check disk space and file limits first. Then enable autogrowth, add a file or free space inside the filegroup.
By Neeraj Singh ~5 min Updated Dec 2026 Based on Microsoft Learn, Dec 2026
Error message
Msg 1105. Could not allocate space for object in database because the 'PRIMARY' filegroup is full.
Summary
SQL Server error 1105 means the database engine could not allocate space for an object because the filegroup is full. Microsoft names two causes. Either the drive has no free space or the database files reached their maximum size. Check free space on the drive first. Check MAXSIZE and FILEGROWTH on every file next. Enable autogrowth, add a file to the filegroup or free space by dropping objects you no longer need. Use ALTER INDEX REBUILD when an index reorganize fails with 1105. Test every command on a copy before you change production.
What error 1105 means
Error 1105 has the symbolic name NO_MORE_SPACE_IN_FG. SQL Server raises it when the engine cannot allocate space for an object in a database because the filegroup is full. Inserts, index builds and other writes fail until the filegroup has room.
Microsoft gives two reasons in the message. The storage has no free space or the files in the filegroup reached their maximum allowed size. Microsoft also notes that files set to UNLIMITED still stop at 16 TB.
The error names a filegroup and not a single file. A database with several files shares the load between them. One full file can raise 1105 for an operation that needs space in that file.
Common causes
The drive that holds the database files has no free space left.
A file reached the MAXSIZE you set and autogrowth cannot extend it.
Autogrowth is off on a file and the file is full.
An index spans several files and ALTER INDEX REORGANIZE cannot move rows into the full file.
✓ How to fix it
Method 1
Check free space on the drive
1Open File Explorer on the SQL Server host and select This PC. Check free space on every drive that holds data files for the database.
2Free space on the drive first if a drive is full. Move backups, old logs and temporary files to another volume.
3Retry the operation that raised error 1105.
4Continue with the next method if the drive has free space and the error returns.
Method 2
Enable autogrowth and raise the maximum file size
1Connect to the instance in SQL Server Management Studio and open a new query window.
2Check the current file settings with the query below. Look at max_size and growth. A growth value of 0 means autogrowth is off.
SELECT name, size*8/1024 AS size_mb, max_size, growth, is_percent_growth
FROM sys.database_files;
4Retry the operation. We have not tested these commands on your server, Test them on a copy first.
Method 3
Add a file to the filegroup
1Choose a drive with free space and create a folder for the new data file.
2Add the file with the command below. Replace the names and the path with your own values.
ALTER DATABASE YourDatabase
ADD FILE (NAME = YourDataFile2, FILENAME = 'D:\Data\YourDataFile2.ndf', SIZE = 1024MB, FILEGROWTH = 512MB)
TO FILEGROUP [PRIMARY];
3Retry the operation. Microsoft lists adding files to the filegroup as the second user action.
4Plan growth for the new file because files in a filegroup fill at their own pace.
Method 4
Free space inside the filegroup
1Find tables and indexes you no longer need. Ask the application owner before you remove anything.
2Drop the unused indexes or tables. Microsoft lists dropping objects as the third user action.
3Take a backup first if you need the data later.
4Retry the operation that raised error 1105.
Method 5
Rebuild an index that spans several files
1Check the error text of the failed statement. Error 1105 with ALTER INDEX REORGANIZE points to this case.
2Use ALTER INDEX REBUILD instead of REORGANIZE. Microsoft names this as a workaround because reorganize cannot move rows into a full file.
3Raise the growth limit of the full files if you prefer to keep REORGANIZE.
4Test the rebuild on a copy because it needs extra space while it works.
Error 1105 means the filegroup has no room for the object SQL Server needs to store. Check drive space, then file limits, then add a file or free space. Steps follow the Microsoft error page and the T-SQL is untested here.
Frequently asked questions
What does SQL Server error 1105 mean?
SQL Server could not allocate space for an object in a database because the filegroup is full. Microsoft names a lack of storage space and files at their maximum size as the two causes.
Is a full drive the only cause of error 1105?
No. A file can reach the MAXSIZE you set while the drive still has free space. Check both the drive and the file limits.
What is the 16 TB limit in the message?
Microsoft notes that data files set to UNLIMITED still stop at 16 TB. A filegroup at that size needs another file.
Should I shrink the database to fix error 1105?
Shrinking frees space only when the files hold unused pages. Check used and free space per file first. Microsoft does not list shrinking among its user actions.
Why does ALTER INDEX REORGANIZE raise 1105?
An index across several files cannot move rows into a full file during REORGANIZE. Microsoft gives ALTER INDEX REBUILD or a higher growth limit on the full files as workarounds.
Does this error affect Azure SQL Database?
Microsoft lists error 1105 for SQL Server, Azure SQL Database, Azure SQL Managed Instance and SQL database in Microsoft Fabric. Your options differ because Azure manages the storage.
Are the T-SQL commands on this page tested?
No. We built the commands from Microsoft syntax and have not executed them on your server. Test them on a copy and keep a backup before you change production.
Still not working?
Send the full error text, the output of the sys.database_files query and the free space on every drive to your DBA if error 1105 returns. You can also submit your error to us for a tailored fix.