How to Fix SQL Server Error 1105 (Msg 1105)

Published
Length
3 min read

Luis Felipe Dias

All posts

You get sql server error 1105 when a database filegroup runs out of space. You fix it by freeing disk space, growing files, or adding new files. This failure returns message 1105 with a severity level of 17 in the engine. The engine states it cannot allocate space for an object in your database. This stops active write tasks until an admin clears room or expands storage. What causes sql server error 1105 in the database engine A severity 17 message means the query ran into a hard resource li

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

You get sql server error 1105 when a database filegroup runs out of space. You fix it by freeing disk space, growing files, or adding new files.

This failure returns message 1105 with a severity level of 17 in the engine. The engine states it cannot allocate space for an object in your database. This stops active write tasks until an admin clears room or expands storage.

What causes sql server error 1105 in the database engine

A severity 17 message means the query ran into a hard resource limit. The database engine wants to write new pages into a specific filegroup. Yet no free space remains inside that filegroup to hold the new data.

Several storage problems can trigger this exact condition during busy write hours. First, the hard drive holding your database files might be full. Second, a file might hit its set max size limit.

Third, auto-growth might be turned off for all files in the filegroup. Fourth, a huge query in the temp database can eat up all space. One unindexed join or giant sort can fill the drive in minutes.

When this happens, new inserts and updates fail right away. Read queries might still work if they do not need temp space. Still, your app will break until you restore free space to the filegroup.

How to diagnose and fix the failure in production

Start by reading the exact error text in your server log. The message names the object, the database, and the full filegroup. This tells you if the problem is in a user database or temp storage.

Next, check the free space on the underlying disk volume. If the disk is full, delete old backup files or move logs off. You can also expand the disk volume through your cloud or storage host.

Kubernetes API Server Access + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

If the disk has plenty of room, check the file settings instead. Look at the max size and growth rules for the full filegroup. Raise the max size limit or turn on auto-growth so files can expand.

If one file cannot grow further, add a new file to that filegroup. Place the new file on a separate disk with plenty of free room. You can also drop unused indexes or archive old rows to free space.

How to control permissions during urgent storage fixes

During an outage, teams often grant broad rights so engineers can check space. Avoid adding regular staff to the fixed database owner role during a rush. Members of that owner role can do all maintenance and even drop the database.

Keep permissions tight and clear while you check the broken database. A database user is the identity of a login inside a single database. For staff who check many databases, a login in master is common.

For staff who work in one database, a contained user is an option. An admin must first turn on contained databases on the server and database. You cannot change the built-in rights of fixed database roles.

Members of the data reader role can read all user tables and views. Members of the data writer role can add, change, or delete table rows. Use these narrow roles for testing while a storage admin fixes the filegroup.

Add runtime guardrails beside SQL Server

Role grants and network rules are needed setup for SQL Server. Still, an allowed user or agent tool can send a bad delete or read raw customer fields over a valid session. In practice, hoop.dev sits inline in the TDS protocol beside the database as a sidecar for your SQL Server. For every query an agent or human runs in production, hoop.dev decides whether to pass, mask, block, or escalate it for review.

With hoop.dev SQL Server controls, rules refuse banned statements before they run, hold risky queries for human review, and mask matched sensitive values in supported result columns in memory. Furthermore, hoop.dev holds SOC 2 Type II and generates evidence for HIPAA, PCI DSS, SOX, and GDPR audits. See the source on GitHub.

Frequently asked questions

What does severity 17 mean for message 1105?

Severity 17 means the statement hit a resource limit it cannot fix alone. A database admin must free disk space or adjust filegroup growth settings.

Why does this error happen when my disk still has free space?

A database file can reach its set max size limit before the disk fills. Check the filegroup properties and raise the max size or add another file.

How do I stop temp database queries from causing this error?

Find the session running large sorts or joins and stop the bad query. Then add proper indexes and set reasonable max size limits on temp files.

The query runs. The emails stay hidden.