Fix SQL Server Error 1105 (Filegroup Full) in 5 Ways

9 min read

SQL Server error 1105 says SQL Server could not allocate space because a filegroup is full. Error 1105 stops inserts, updates and index work so the application fails until the filegroup has room.

This guide shows how to find the cause and gives five fixes that match the cause.

Quick SummarySQL Server error 1105 means a filegroup has no space left. Check the file size limit and the free disk space first. Enable autogrowth and raise MAXSIZE when a limit stopped growth. Free disk space when the volume is full. Add a data file when one volume has no room. Drop unneeded objects and rebuild indexes to free pages. Check tempdb sessions when the message names tempdb. Take a full backup before you edit the files.

What Does Error 1105 Say About the Filegroup?

According to Microsoft, error 1105 means no disk space is available in a filegroup. The message names the object, the database and the filegroup that ran out of room.

Could not allocate space for object 'dbo.Orders' in database 'OrdersDB' because the 'PRIMARY' filegroup is full due to lack of storage space or database files reaching the maximum allowed size. Note that UNLIMITED files are still limited to 16TB. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.
  • Volume is full. The disk of the file has no free space for the next growth step.
  • MAXSIZE reached. The file hit the limit set on the file even when the disk has room.
  • Autogrowth is off. A FILEGROWTH value of 0 stops the file from growing.
  • Size ceiling. Microsoft states that an UNLIMITED data file stops at 16 TB and an UNLIMITED log file stops at 2 TB.

Do You Know?Error 1105 reports a full data filegroup. A full transaction log raises error 9002 instead. Follow SQL transaction log is too big or growing unexpectedly when your message says the log is full.

How to Find Which Limit Stopped the Growth?

Check the size, the limit and the free space of every file in the database before you edit anything. The query below lists every file with the free space on its volume. The volume function needs SQL Server 2017 or later and the VIEW SERVER STATE permission.

SELECT f.name AS file_name,
       f.type_desc,
       f.size / 128 AS size_mb,
       f.max_size,
       f.growth,
       f.is_percent_growth,
       v.volume_mount_point,
       v.available_bytes / 1048576 AS volume_free_mb
FROM sys.master_files AS f
CROSS APPLY sys.dm_os_volume_stats(f.database_id, f.file_id) AS v
WHERE f.database_id = DB_ID(N'OrdersDB');

The column max_size counts 8 KB pages. A value of -1 means unlimited growth and 0 means no growth. The column growth counts pages unless is_percent_growth is 1. Use the result and the table below to select the method.

What the query shows Cause Start with
volume_free_mb is close to 0 The volume is full Method 2
growth is 0 Autogrowth is off Method 1
size_mb equals max_size in MB MAXSIZE reached Method 1
The disk is full and no space can be freed No room on this volume Method 3
The message names tempdb Sessions fill tempdb Method 5

How to Fix SQL Server Error 1105?

Every example uses the database OrdersDB with the data file OrdersDB_Data. Replace the names with your own values. Take a full backup of the database before you edit the files.

Method 1: Enable Autogrowth and Raise MAXSIZE

Use this method when growth is 0 or when the file reached MAXSIZE. Microsoft states that MODIFY FILE changes only one property per statement so send one statement for every property.

ALTER DATABASE OrdersDB MODIFY FILE (NAME = OrdersDB_Data, MAXSIZE = UNLIMITED);
ALTER DATABASE OrdersDB MODIFY FILE (NAME = OrdersDB_Data, FILEGROWTH = 512MB);

Select a fixed size for FILEGROWTH. Microsoft documents that a percentage setting grows the file by a share of its current size and rounds to the nearest 64 KB. A large file asks for a large step at once. The default growth is 64 MB for data and log files from SQL Server 2016. Older versions start with 1 MB for data files and 10 percent for log files. Follow database autogrowth in SQL Server to size the step.

Method 2: Free Space on the Volume

Use this method when volume_free_mb is close to 0. Move old backup files, trace files and installers to another volume and the file grows again at the next request. Autogrowth needs the free space on the volume at the moment of growth.

Follow monitor SQL Server disk space to set an alert before the volume fills.

Method 3: Add a Data File to the Filegroup

Use this method when the current volume has no room and no files can move. Place the new file on a volume with free space. Microsoft documents the ADD FILE syntax with a TO FILEGROUP clause.

ALTER DATABASE OrdersDB
ADD FILE
(
    NAME = OrdersDB_Data2,
    FILENAME = N'E:\SQLData\OrdersDB_Data2.ndf',
    SIZE = 10GB,
    MAXSIZE = UNLIMITED,
    FILEGROWTH = 512MB
)
TO FILEGROUP [PRIMARY];

Microsoft notes that SQL Server zero-fills new files by default and that data files can be initialized instantly. Check the new file in sys.database_files after the statement finishes.

Method 4: Drop Unneeded Objects and Rebuild Indexes

Use this method when you cannot add space. Microsoft lists dropping unneeded indexes and tables as a user action. Check the used space of every file first.

SELECT name,
       size / 128.0 AS size_mb,
       FILEPROPERTY(name, 'SpaceUsed') / 128.0 AS used_mb
FROM sys.database_files;

Microsoft adds a note for indexes that span several files. ALTER INDEX REORGANIZE returns error 1105 when one of those files is full because the process cannot move rows into the full file. Use ALTER INDEX REBUILD or raise the growth limit of the full file. Free some space first because a rebuild builds a new copy of the index.

ALTER INDEX IX_Orders_OrderDate ON dbo.Orders REBUILD;

Heads UpA shrink does not add room to a full filegroup and it fragments indexes. See why to prevent shrinking data files before you consider one.

Method 5: Find the Sessions That Fill tempdb

Use this method when the message names tempdb. Sort sessions by the pages they allocated in tempdb and stop the query that fills the file.

SELECT TOP (10) session_id,
       user_objects_alloc_page_count,
       internal_objects_alloc_page_count
FROM sys.dm_db_session_space_usage
ORDER BY user_objects_alloc_page_count + internal_objects_alloc_page_count DESC;

Fix the query that sorts or spills large result sets and add tempdb files only after that. Follow optimize tempdb in SQL Server for the file layout. Microsoft states that tempdb is created again at every restart so a restart returns the space and the cause comes back with the same query.

Which Tools and Permissions Do These Fixes Need?

Check both tables before you edit the files on a production server.

Software Specifications

Attribute Detail
Tool SQL Server Management Studio (SSMS) 22
Language T-SQL
SQL Server versions SQL Server 2017 and later
Permission for the volume query VIEW SERVER STATE (VIEW SERVER PERFORMANCE STATE on SQL Server 2022 and later)
File limits 16 TB for a data file and 2 TB for a log file

System Specifications

Component Requirement
Operating system (client) Windows 11 (64 bit), including Arm64 editions
Operating system (server) Windows Server 2025, 2022 and 2019
Processor x64 processor, quad core or better recommended
RAM 4 GB minimum, 16 GB recommended
Hard disk space 4 GB minimum, up to 50 GB depending on installed features
Framework Microsoft .NET Framework 4.8 to open SSMS (Setup installs it)
Install permission Administrator rights

What Do DBAs Ask About Error 1105?

Does Error 1105 Mean the Disk Is Full?

No. A file that reached MAXSIZE raises error 1105 on a disk with free space and a file with autogrowth off does the same. Execute the file query before you free any space.

Is Error 1105 the Same as Error 9002?

No. Error 1105 reports a full data filegroup. Error 9002 reports a full transaction log.

Can ALTER INDEX REORGANIZE Raise Error 1105?

Yes. Microsoft documents error 1105 for an index that spans several files when one file is full. Use ALTER INDEX REBUILD or raise the growth limit.

Does a Shrink Fix Error 1105?

No. A shrink releases unused space and cannot make room when the data fills the file. Add space or drop objects instead.

How Large Can a SQL Server File Grow?

Microsoft states that an UNLIMITED data file reaches 16 TB and an UNLIMITED log file reaches 2 TB. Add a second data file before a file approaches 16 TB.

When Does a File Edit Need a Restart?

Microsoft requires a restart or an offline and online cycle when you move a file with FILENAME. Copy the file to the new folder first and edit the path after that.

How to Stop Error 1105 From Coming Back?

Set FILEGROWTH to a fixed size and set MAXSIZE above your yearly growth. Alert on volume free space so you act before the volume fills.

Check file sizes every month with the query from this guide. A file that grows faster than planned shows the problem weeks before the error.

Who, How and WhyAndrew Jackson, Technical Content Specialist, wrote this guide. The error text, causes and actions follow the Microsoft Learn pages linked above and the T-SQL was checked against Microsoft documentation but not executed on a live server. The guide exists because the Microsoft page for error 1105 lists actions without commands.

Key Takeaways

  • SQL Server error 1105 means a data filegroup has no space left.
  • A full volume, a MAXSIZE limit and autogrowth set to 0 raise the same message.
  • MODIFY FILE edits one property per statement.
  • ALTER INDEX REORGANIZE raises error 1105 when a file of the index is full.
  • Add a data file on another volume when the current volume has no room.