How to Fix SQL Server Error 26014 (Msg 26014)
You see sql server error 26014 when the database engine cannot load a user certificate. You fix it by checking the certificate hash and granting the service account read access. This failure has a severity level of 16. When it happens, the server will not accept a connection from any client or app. Database teams often hit this issue after they rotate TLS keys or change service accounts. Because the database stops taking traffic right away, teams must find the root cause fast. What causes sql
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 26014 when the database engine cannot load a user certificate. You fix it by checking the certificate hash and granting the service account read access.
This failure has a severity level of 16. When it happens, the server will not accept a connection from any client or app. Database teams often hit this issue after they rotate TLS keys or change service accounts. Because the database stops taking traffic right away, teams must find the root cause fast.
What causes sql server error 26014 in your database
During startup, the database engine looks for the specific certificate hash set up for encryption. If the engine cannot read or load that certificate, it logs message 26014 and stops. The official error message notes that the server cannot load the user-specified SHA1 certificate hash. As a result, the engine refuses to accept any incoming connection until you fix the setup.
Several common problems trigger this startup failure on a host machine. First, the service account running the database might lack read access to the private key. Second, an admin might have deleted or replaced the certificate in the local store. When a new certificate replaces an old one, the thumbprint hash changes. If the server still points to the old hash, startup fails right away.
Third, the certificate might sit in the wrong certificate store on the host machine. The engine expects the key in the local computer store, not a personal user store. Finally, a corrupted private key file or expired certificate can also block the load step.
How to diagnose and fix the certificate load failure
Start by reading the server error log to find the exact SHA1 hash in the message. That hash tells you which certificate the database engine is trying to load at startup. Next, open the certificate store on the host machine and look for that exact thumbprint.
If the certificate is there, check the private key permissions for that specific item. Identify the exact Windows account or service identity that runs the database engine process. Grant that specific service account read access to the private key in the certificate store. Do not grant full control or add the service account to local admin groups. Keeping permissions tight protects your keys while letting the engine start up in a safe way.
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 certificate is missing from the store, check if a team member renewed it. When you install a renewed certificate, update the database network setup to use the new hash. Make sure the new certificate meets all engine rules for key usage and valid dates. After you update the certificate binding or fix the key access, restart the database service. Check the startup log right away to confirm the engine loads the certificate and takes traffic.
Keeping database access safe during maintenance
When teams fix startup errors, they often log in with high privileges to check settings. Once the server accepts connections again, you should review who has access to your databases. A database user is the identity of a login when it connects to a database. For people who need access to many databases, a SQL user with a login 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.
Avoid using the owner role for daily checks after you fix a server outage. The owner role can perform all maintenance activities and can drop the database in SQL Server. Instead, put engineers who only need to check data into the fixed reader role. Members of that reader role can read all data from all user tables and views. You cannot change the permissions assigned to fixed database roles, which keeps access rules clear. When you pair strong TLS certificates with least-privilege roles, your data stays safe from mistakes.
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
Why does SQL Server stop accepting connections when error 26014 happens?
The server requires a valid certificate to encrypt traffic when forced encryption or strict TLS is active. If the engine cannot load the specified certificate hash at startup, it refuses all connections to prevent unencrypted traffic.
Should I add the database service account to the local administrators group to fix key access?
No, adding the service account to the local admins group gives the database engine excessive host privileges. Instead, grant the service account read-only access directly on the private key of that single certificate.
How do I fix error 26014 if we no longer use the missing certificate?
If the old certificate was removed on purpose, open your server network settings and clear the old thumbprint binding. Select the new valid certificate from the local store and restart the database service.
Related guides
In this post