2026 Windows Server 2025 KB5126646: What to Do About SQL Linked Server Connection Buildup?

2026 Windows Server 2025 KB5126646: What to Do About SQL Linked Server Connection Buildup?

A linked-server query finishes, but connections to the external database remain open or keep accumulating.

Fastest safe response: Check whether the affected server has Windows updates released on or after October 13, 2026, and whether SQL Server uses an OLE DB provider to reach an external database. Microsoft confirms this issue for some linked-server scenarios, not every SQL Server installation. As of November 14, 2026, the published mitigation is to contact Microsoft Support for business; do not treat restarting SQL Server as a risk-free general fix. (Microsoft’s Windows Server 2025 known-issues page)

This guide is for SQL Server administrators tracing linked-server queries and external connections, Windows administrators checking patch history, and application teams assessing dependencies on databases such as Oracle or PostgreSQL.

Last updated November 14, 2026. The issue scope and mitigation status were checked against Microsoft’s Windows Server 2025 known-issues page, the KB5126646 update record, and the KB5131080 update record. Recheck the known-issues page before acting; update guidance and fix status can change.

Windows Server 2025 KB5126646 SQL linked-server connection checks

A linked server lets the SQL Server Database Engine access data from another data source. The issue under discussion is narrower than “SQL Server connections are building up”: it concerns some linked-server queries that use OLE DB to access an external database. Microsoft names Oracle and PostgreSQL connections as known examples. That does not establish that all providers, linked servers, or queries are affected. See Microsoft’s linked-server documentation for how linked servers work.

Start by checking the actual query path. Establish whether the application connects to a separate database through a SQL Server linked-server object, rather than connecting directly from its own process. Then identify the provider configured for that linked server and the external database it reaches. The Microsoft sp_addlinkedserver reference describes the server object and provider parameters; use it as a reference when reviewing configuration, not as a reason to change a live definition during incident triage.

Could KB5126646 affect every SQL Server linked server? No. Microsoft’s confirmation is limited to some linked-server queries that use OLE DB after affected Windows updates. The presence of KB5126646 is a clue to investigate, not proof that a particular server is affected. Check the provider, query path, timing, and observed connection behavior together.

For each affected business workflow, record:

  • The linked-server name and configured provider.
  • The external database type and the team responsible for it.
  • Which application, scheduled job, or user action runs the query.
  • Whether connections remain open after the query ends, and whether later activity appears to add more.
  • Any service slowdown, resource pressure, or errors observed at the same time.

This information separates a likely match from other explanations, such as application connection pooling, a long-running query, provider-specific behavior, or a separate connection leak. Do not label the symptom as update-caused until the timeline and connection path support that conclusion. If the application uses a direct database connection rather than SQL Server linked-server access, investigate that path separately.

Windows patch administrators: match the update timeline

Microsoft associates the known issue with certain Windows updates released on or after October 13, 2026. Compare that date with the first observed symptom and the server’s update history. A machine that has KB5126646 installed may warrant investigation, but the KB’s presence alone does not prove causation. Likewise, a different update name does not rule out the issue if a later applicable update is installed. Review the KB5126646 update details together with the current known-issues notice.

Check the Windows Server edition and build, then collect installed-update evidence:

  • Graphical route: Open Settings → Windows Update → Update history and note the relevant quality updates and installation dates. Compare the record with the date the connection symptom first appeared.
  • PowerShell route: Run Get-HotFix in an elevated PowerShell session and review the update identifiers and installation dates. To filter for the named update, use Get-HotFix -Id KB5126646. Microsoft documents the cmdlet’s output and parameters in the Get-HotFix reference.
  • Cross-check: If the result does not match Windows Update history, do not assume that no relevant servicing change occurred. Record the discrepancy and review the applicable update records, including later updates such as KB5131080.

The purpose is to build a reliable timeline, not to remove an update or change servicing state immediately. Do not use an unverified rollback command, registry workaround, or script as a substitute for Microsoft’s current guidance. The known-issues page is the place to recheck the affected-update scope and published mitigation.

Why might connections remain after an update? Microsoft’s description is that some linked-server queries using OLE DB can leave a connection open after the query completes, allowing connections to accumulate. This is a documented issue pattern, not a claim that every lingering connection has the same cause. Compare the affected query’s completion time with the observed connection state and the Windows update timeline.

Database operations: observe before intervening

Collect evidence from both sides of the connection. SQL Server’s sys.dm_exec_connections view reports connections to the local SQL Server instance. It can help establish local session activity, but it does not by itself provide a definitive count of outbound OLE DB connections held by a linked-server provider. Use the Microsoft DMV documentation to understand the view’s scope, and use suitable monitoring on the external database or provider side to confirm remote sessions.

A read-only snapshot of local sessions can help correlate activity with application reports:

SELECT
    s.session_id,
    s.login_name,
    s.host_name,
    s.program_name,
    c.connect_time,
    c.net_transport,
    c.client_net_address
FROM sys.dm_exec_sessions AS s
JOIN sys.dm_exec_connections AS c
    ON c.session_id = s.session_id
WHERE s.is_user_process = 1;

Treat this as context, not as a linked-server leak detector. Save snapshots with timestamps and compare them with query execution records, application logs, and observations from the external database. Avoid publishing sensitive client addresses or login details in a general incident channel. If the external database team can provide session details, compare those records with the SQL Server-side timestamps and the application request IDs, where available.

The investigation should answer a few concrete questions:

  • Did the relevant linked-server query complete, or is it still running?
  • Does the external database show sessions that correspond to the completed query?
  • Does the observed state change after the affected application path runs again?
  • Did the symptom begin after an applicable Windows update, or was it present earlier?
  • Are other workloads using the same provider or linked-server definition behaving differently?

Do not invent a connection threshold or assume a fixed rate of accumulation. Compare the server with its own baseline and the workload’s expected behavior. A gradual increase that appears only after a particular query path is useful evidence, but it is not sufficient by itself to establish a Windows update as the cause. If the symptom is not limited to linked-server access, or if its timing does not align with the update history, continue investigating other causes rather than forcing the Microsoft issue to fit.

Application owners: map business impact and protect active work

Build a dependency list before changing a service. Include each application that calls a linked server, the external database it reaches, and whether the query supports an interactive workflow, scheduled processing, or reporting. Ask the database and application owners to identify any high-impact transactions that could be interrupted by terminating connections or restarting SQL Server.

A short, evidence-based impact review is better than assuming every connected application is affected. For example, if an overnight report uses a linked server but the observed connection buildup is tied to a different application path, the report may not share the same exposure. Conversely, if a business-critical workflow depends on the affected provider, even a temporary mitigation may require a maintenance decision and an owner-approved interruption window.

Should you restart SQL Server before Microsoft publishes a fix? Not automatically. Microsoft notes that restarting the SQL Server service or manually closing identified idle connections may temporarily mitigate the issue, but these actions can interrupt active queries or transactions, and the problem may recur. The published guidance as of November 14, 2026 is to contact Microsoft Support for business for a mitigation. Check the current Microsoft notice before taking action. (Microsoft’s known-issues page)

If an incident requires an immediate operational decision, first identify active work and determine who can approve interruption. Prefer a narrowly scoped action against a verified idle connection over a broad cleanup, but only when the database team can establish that the connection is safe to close and the action aligns with current vendor guidance. Keep a record of what was changed, when, by whom, and whether the symptom returned. Do not present a service restart as a permanent repair.

When preparing an escalation, include the Windows Server version and build, update history, relevant linked-server provider, external database type, affected query or job, and timestamps for connection observations. Add the operational impact and any action already taken. This helps support staff distinguish the confirmed issue pattern from an unrelated provider or application problem without relying on an unsupported guess.

Escalation and mitigation decision path

Use these conditions to choose the next step:

  • If the workload does not use SQL Server linked servers to reach an external database, then this confirmed issue is not yet a good explanation; investigate the actual connection path and other likely causes.
  • If it uses a linked server with OLE DB, but the server’s update timeline does not match the affected period or the symptom predates it, then collect provider-side and application evidence before attributing the problem to Windows servicing.
  • If the query path, observed open connections, and post-update timeline align, then preserve the evidence and contact Microsoft Support for business for the published mitigation rather than deploying an unverified workaround.
  • If closing an identified idle connection or restarting SQL Server is being considered, then first assess running queries, transactions, dependent applications, and recurrence risk; otherwise, defer the disruptive action and escalate.
  • If Microsoft updates the issue status or publishes a fix, then verify the applicable update and its installation state against the official notice before changing the incident plan.

These branches are not a substitute for a provider-specific diagnosis. They prevent two common errors: treating every Windows Server 2025 SQL workload as affected, and treating a service restart as a harmless universal remedy. Record which branch applies and why, so the next operator can see whether the decision was based on observed evidence or an assumption.

Deployment planning: separate hardware choices from the update issue

A new or different server will not, by itself, correct a Windows update or OLE DB behavior. First establish whether the existing system is affected and follow the current Microsoft mitigation path. Consider a deployment change only when it addresses a separate requirement, such as planning a new Windows environment or reviewing how a database workload is hosted.

Option Useful when Limitation to account for
Keep the current environment and investigate The update timeline and linked-server behavior are still being verified Requires evidence collection and coordination across database, Windows, and application teams
Apply a Microsoft-directed mitigation The observed path matches the confirmed issue and support provides guidance Closing connections or restarting a service can disrupt active work; temporary mitigation may not prevent recurrence
Plan a separate server deployment There is an independent need to change hosting, capacity, or deployment design A server move does not establish or fix the cause of this Windows update issue

For a separate deployment review, check which Windows Server versions, language options, and server configurations are currently available before committing to a migration plan. The RunnerAMD deployment scenarios can help frame the hosting requirement, while the current order options are the place to verify what can actually be selected. A hosting change should not be presented as a fix for KB5126646, and it does not provide SQL Server licensing or database operations.

The practical next move is to preserve the query and connection evidence, match it to the Windows update timeline, and use Microsoft’s current support guidance if the confirmed pattern fits. If the organization also needs a dedicated Windows environment for a separate capacity or deployment reason, verify RunnerAMD’s current options after the database team has documented the issue; do not replace a diagnosis with a server purchase.

Further reading

Plan Your Database Capacity with RunnerAMD

Choose a dedicated AMD EPYC 7543P server with 128GB or 256GB of ECC memory for your workload.

Configure a Runner system, starting with memory

Dedicated AMD EPYC 7543P server with 128 GB or 256 GB DDR4-3200 ECC memory.