How to Fix SQL Server Error 9692 (Msg 9692)

Published
Length
3 min read

Luis Felipe Dias

All posts

You get sql server error 9692 when an endpoint tries to use a busy network port. You fix this error by changing the endpoint port or stopping the other process. This failure logs with message code 9692 and a severity level of 16. The database engine reports that the endpoint cannot listen on the chosen port. Another program on the same host already holds that port open. Until you resolve this conflict, the endpoint stays offline and rejects network traffic. What causes sql server error 9692 i

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 9692 when an endpoint tries to use a busy network port. You fix this error by changing the endpoint port or stopping the other process.

This failure logs with message code 9692 and a severity level of 16. The database engine reports that the endpoint cannot listen on the chosen port. Another program on the same host already holds that port open. Until you resolve this conflict, the endpoint stays offline and rejects network traffic.

What causes sql server error 9692 in your database

SQL Server uses endpoints to accept network traffic for features like Service Broker or mirroring. Each endpoint needs a dedicated TCP port on the host operating system. When the database starts an endpoint, it asks the operating system for that port. If another service already claimed that port, the request fails right away.

A common cause is running two database instances on the same host machine. Both instances might try to bind their endpoints to the same port number. The first instance to start wins the port and starts its endpoint. The second instance hits message 9692 and writes an alert to the error log.

Sometimes a local agent, monitoring tool, or web service grabs the port first. In other cases, a crashed process leaves a stale socket open for a short time. Dynamic port allocation on the host can also assign your port to a random app. Whatever the cause, two programs cannot listen on the exact same IP and port.

How to check and fix the port conflict safely

First, read the SQL Server error log to find the exact port number and endpoint name. Next, check the host operating system to see which process owns that port. Your system team can map the active port to a specific process identifier. Once you know the program name, you can pick the safest fix.

If a rogue or unused program holds the port, stop that service right away. If a critical app needs that port, update your SQL Server endpoint instead. Assign a free, unused TCP port to the database endpoint and restart it. Also, update your firewall rules so peers can reach the new port number.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

How to keep permissions safe while you fix endpoints

When teams rush to fix a port conflict, they often grant broad server rights. Avoid giving full owner rights to engineers who only need to check logs. In SQL Server, the fixed owner role can change settings and even drop the database. Instead, limit who can alter server endpoints and keep routine access scoped down.

A database user is the identity of a login when it connects to a database. For people who need access to many databases, a login in master is common. For access to one or a few databases, a contained database user is an option. An admin must first enable contained databases on the server and the database.

For data checks, use fixed database roles with strict limits that cannot be changed. Members of the data reader role can read all data from user tables and views. If a user only needs to check table state, grant that reader role. Keep endpoint changes restricted to a small group of senior database admins.

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

What does severity 16 mean for sql server error 9692?

Severity 16 means the error is a general issue that the user or admin can fix. The database engine stays online, but the specific endpoint cannot listen on the port. You must free the port or pick a new port to restore that endpoint.

Can two SQL Server instances share the same endpoint port?

No, two instances on the same IP address cannot listen on the same port. Each instance needs its own unique TCP port for Service Broker or mirroring endpoints. If both use the same port, the second instance to start will fail with error 9692.

Do I need to restart the whole SQL Server service to fix error 9692?

No, you do not need to restart the entire database engine in most cases. Once you free the port or assign a new port, just restart the endpoint. The endpoint will bind to the open port and start accepting traffic right away.

The query runs. The emails stay hidden.