How to Fix SQL Server Error 35267 (Msg 35267)

Published
Length
3 min read

Luis Felipe Dias

All posts

You see sql server error 35267 when an Always On Availability Groups database link drops. You fix it by checking network health, replica status, and account rules between nodes. This message has a severity level of 10 in the database engine. Severity 10 means the engine logs an informational message about a state change. Even though it is informational, repeated drops point to real cluster instability. Teams must find out why the primary and secondary databases stopped talking. What causes sq

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 see sql server error 35267 when an Always On Availability Groups database link drops. You fix it by checking network health, replica status, and account rules between nodes.

This message has a severity level of 10 in the database engine. Severity 10 means the engine logs an informational message about a state change. Even though it is informational, repeated drops point to real cluster instability. Teams must find out why the primary and secondary databases stopped talking.

What causes sql server error 35267 in availability groups

The official message says an Always On Availability Groups connection with a database ended. This event happens between a primary database and a secondary database on a replica. Several everyday events can trigger this message in your server logs.

First, a planned failover or a manual replica restart will close the link. When an admin takes a database offline, the engine ends the link cleanly. Second, network drops or firewall resets between cluster nodes can break the session. If packets fail to arrive on time, the replica drops the link.

Third, heavy disk or CPU load can stall the database engine. A stalled node cannot answer health checks before the timeout clock runs out. Fourth, someone might change login rights or endpoint certificates on one of the servers. When login checks fail after a reset, the nodes cannot link back up.

How to check and fix replica connection drops safely

Start by reading the server error log around the exact time of the drop. Look for partner messages that show if a failover or restart happened first. If a planned change caused the drop, the link should come back alone. Check the replica state to see if data sync is running again.

If the link stays down, check the network path between the two server hosts. Make sure firewalls allow traffic on the ports used for database mirroring endpoints. Talk to the network team to check for dropped packets or switch resets. Fixing the network route often lets the availability group heal itself right away.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

During an outage, engineers must log in to check replica state and logs. Do not hand out full admin rights to every person who checks the issue. In this database engine, the fixed owner role can run all maintenance tasks. That same owner role can also drop the database by mistake.

Instead, keep user rights small when people inspect tables or views during an incident. A database user is the identity of a login inside a specific database. For people who need many databases on an instance, use a login in master. For one or a few databases, a contained database user with a password works. An admin must first turn on contained databases on the server and database.

Give responders only the read rights they need to check app data state. Members of the fixed data reader role can read all user tables and views. You cannot change the permissions assigned to fixed database roles. Keep write roles away from fixing accounts so nobody changes data during a fix. When you mask sensitive columns, rewrite emails, phone numbers, card numbers, and national IDs.

How to prevent future availability group drops

Once the database link is stable, set up alerts for repeat connection drops. One message during a maintenance window is normal and needs no action. Ten messages in an hour mean your network or storage has a deeper flaw.

Watch disk write times on both the primary and secondary server nodes. Slow transaction log writes can stall replica sync and force a connection reset. Keep your cluster network on a clean path away from heavy backup traffic. Review login and role setup often so replica endpoints stay healthy and safe.

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

Is sql server error 35267 a critical database failure?

No, error 35267 has severity 10, which makes it an informational status message. Still, if it appears often without planned maintenance, it warns you about network drops.

Yes, if an admin removes endpoint permissions or disables the service login, connections end. Keep user roles separate from cluster service accounts to avoid breaking replica links.

How should engineers check data after a replica reconnects?

Give engineers a read role that can read user tables and views safely. Avoid using the database owner role for simple checks so nobody drops a database.

The query runs. The emails stay hidden.