How to Fix SQL Server Error 7105 (Msg 7105)

Published
Length
3 min read

Luis Felipe Dias

All posts

You get sql server error 7105 when a query reads a missing large object node. You can fix it by stopping uncommitted reads or repairing damaged table pages. This message has a severity level of 22. It points to a specific database ID, page ID, and slot number. When a large object node does not exist there, the engine stops your query. Teams must check whether dirty reads or storage corruption caused the fault. What causes sql server error 7105 in the database engine The official message for

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 7105 when a query reads a missing large object node. You can fix it by stopping uncommitted reads or repairing damaged table pages.

This message has a severity level of 22. It points to a specific database ID, page ID, and slot number. When a large object node does not exist there, the engine stops your query. Teams must check whether dirty reads or storage corruption caused the fault.

What causes sql server error 7105 in the database engine

The official message for sql server error 7105 points to missing large object nodes. Large objects store long text, binary files, or XML data across linked pages. A parent row holds a pointer to the exact page and slot. If that target slot is empty or gone, the engine raises message 7105.

Uncommitted transactions are the most common cause of this failure. One session might change or delete large object data while another session reads it. If the reading query skips locking checks, it follows a pointer that just changed. The node disappears before the read finishes, which triggers the error without real corruption.

True page corruption is the second major cause of this error. Bad disk sectors or memory faults can damage a large object page on storage. When the engine checks the broken page, the expected slot is missing. Severity 22 means the table or index structure itself may have sustained damage.

How to diagnose and fix the failure safely in production

Start by checking if the error happens during dirty reads. Review the apps and reports that query the table shown in the message. If those queries read uncommitted data, switch them to a safer isolation mode. Using snapshot isolation lets readers see a stable version of large object pages.

If changing how apps read data does not stop the error, check page health. Run a database consistency check during a quiet window to find broken pointers. Do not hand out the db_owner role to every engineer during an incident. A member of db_owner can run all maintenance tasks and even drop the database.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Keep repair rights restricted to a small group of admins. For engineers who only inspect data, assign a read-only database user instead. A database user is the identity of a login when it connects. You can use a login in master or a contained user for one database.

Add investigating engineers to the db_datareader fixed database role. Members of db_datareader can read all data from all user tables and views. They cannot add, delete, or change rows unless they also hold db_datawriter. You cannot change the permissions assigned to these fixed database roles.

Once a privileged admin confirms physical corruption, restore the damaged pages from a clean backup. Restoring from backup is the safest way to recover every missing large object node. If you have no good backup, rebuild the affected table or copy out good rows. Avoid repair modes that delete broken pages unless you accept permanent data loss.

How to prevent future large object page errors

Prevent dirty reads on tables that hold large text or binary columns. Train your team to avoid query hints that skip locks on busy production tables. Check storage health often so bad disk sectors do not corrupt large object pages.

Audit database roles so regular users cannot run risky changes during an outage. If a service account should never change data, use the db_denydatawriter role. Members of db_denydatawriter cannot add, modify, or delete data in any user table. Clear role boundaries and clean backups keep large object storage safe and reliable.

Check SQL Server batches and results on the wire

SQL Server logins and roles decide who connects. They do not check what each TDS batch does or mask sensitive values in returned rows. With hoop.dev, you run an open-source proxy, a sidecar for your SQL Server, inline in the TDS wire protocol. On every batch an AI agent or engineer runs against production, hoop.dev decides to pass, mask, block, or hold it for human review.

Before a batch hits the server, hoop.dev guardrails refuse disallowed actions with a native TDS error or hold risky statements for approval. On the way back, hoop.dev data masking rewrites sensitive values in supported result columns in memory, and every decision is logged. Explore the MIT-licensed project on GitHub.

Frequently asked questions

Does sql server error 7105 always mean my database is corrupted?

No, this error often happens when a query reads uncommitted changes on large object data. Check for dirty reads first before assuming your disk pages have real corruption.

What severity level is message 7105 in SQL Server?

Message 7105 has a severity level of 22 in the database engine. This level warns that a table or index page has a damaged structure.

Which role should engineers use to inspect tables during a 7105 incident?

Assign engineers to the db_datareader role so they can read user tables safely. Save the db_owner role for senior admins who run repairs or restores.

The query runs. The emails stay hidden.