KB5059390: Cumulative update for SQL Server 2022, CU branch, July 2025. Analysis Services startup hangs and query errors fixed
Includes 11 fixes for SQL Server 2022, including an Analysis Services startup hang and several query errors. A known issue with SESSION_CONTEXT in parallel query plans remains open.
Does it affect you? Applies to: Instances running SQL Server 2022. The package updates only the SQL Server components that are installed on the instance.
Review notes Additional details from the official release notes (1) Read note
- What changes A previous Windows update introduced an issue that could cause restarts or prevent setup from continuing. This fix deletes the PendingFileRenameOperations registry value when applying SQL Server updates.
The official sources are linked at the end of the page.
For servers on the CU branch: they install cumulative updates, which also bring fixes beyond security. Servers on the GDR branch (security fixes only) get a separate update. Which branch am I on?
What changes
Fixes 9 changes
Analysis Services
For: Windows devices running Analysis Services in multidimensional mode
-
Analysis Services is less likely to stop responding during startup in a rare case involving proactive caching notifications in multidimensional mode.1
Fixes an infrequent race condition in proactive caching register notification in multidimensional mode.
Backup Restore
For: SQL Server instances backing up to S3-compatible object storage
-
A failed backup to S3-compatible object storage no longer triggers an assertion failure after 20 retries.2
Fixes the assertion failure at
blobaccess.cpp:9441when a backup to S3-compatible object storage fails and is retried 20 times.
Linux
For: SQL Server on Linux
-
Under low vCPU conditions, SQL Server no longer stops responding because of a deadlock when
control.alternatewritethroughis set to1.3Fixes a deadlock that results in a non-yielding scheduler under low vCPU conditions.
High Availability and Disaster Recovery
For: SQL Server instances with a large Query Store background-task list
-
Fixes a non-yielding scheduler dump issue that may occur when Query Store has many background tasks and is disabled or SQL Server shuts down.4
Also addresses errors 1222 and 12412, including an internal table access error with HRESULT
0x80004005.
Programmability
Query Execution
For: SQL Server users of variable-length parameters
- In rare cases, SQL Server no longer reads uninitialized memory when using variable-length parameters.7
Query Optimizer
For: SQL Server users of multi-statement table-valued functions with CLR expressions
-
Queries that call a multi-statement table-valued function with a CLR expression in its parameter no longer trigger an access violation when interleaved execution occurs.8
Fixes an access violation involving an MSTVF with a common language runtime (CLR) expression in its parameter.
Patching
For: Windows devices updating SQL Server
-
SQL Server updates no longer retain the
PendingFileRenameOperationsregistry value, which a previous Windows update could leave behind and cause restarts or prevent setup from continuing.9Deletes thePendingFileRenameOperationsregistry value when applying SQL Server updates.
Improvements 2 changes
Linux
-
SQL Server on Linux can now use memory limits set through Control Groups (cgroups) version 2.10
Adds cgroups v2 memory limit support in the Platform Abstraction Layer (SQLPAL).
SQL Server Engine
For: SQL Server 2022 users who enable trace flag 11953
-
SQL Server 2022 adds support for a
CREATE USERsyntax option that uses a SID and type, enabled by trace flag 11953.11Adds support forWITH SID=sid, TYPE=[E|X]inCREATE USERsyntax by using trace flag 11953.
Known issues
-
Incorrect behavior of SESSION_CONTEXT in parallel plans
Queries that use
SESSION_CONTEXTmight return incorrect results or trigger access violation dump files when run in parallel query plans. This can happen particularly when a session is reset for reuse.12Workaround status No workaround yetMicrosoft has not published a manual workaround for this issue yet. Monitor release health until a resolving update is available.
Technical details
Data sheet · Security · Downloads · Components Click to collapse or expand
Data sheet
- Released
- 2025-07-10
- Classification
- Updates
- Type
- Cumulative update
- Servicing branch
- CU
- Restart
- Required
- Replaces
- KB5054531, KB5050771, KB5048038, KB5048033
- Replaced by
- KB5063814
| Version | Build | Channel |
|---|---|---|
| 2022 | 16.0.4205.1 | General availability |
Security
No vulnerabilities are listed for this update.
Downloads (Microsoft Update Catalog)
Sources
Cited passages from Microsoft's official notes (12)
-
1.
Fixes an infrequent race condition in which proactive caching register notification in multidimensional mode might cause a SQL Server Analysis Services (SSAS) server to stop responding during startup.
support.microsoft.com -
2.
Fixes an assertion failure (Location:"sql\ntdbms\storeng\dfs\manager\blobaccess.cpp":9441; Expression:filepos > protocolHandler->m_maxFilePosSoFar) that you encounter when backing up to S3-compatible object storage fails and then having 20 retries.
support.microsoft.com -
3.
Fixes a deadlock issue that results in a non-yielding scheduler and causes the SQL Server instance to stop responding when
support.microsoft.comcontrol.alternatewritethroughis set to1under low vCPU conditions. -
4.
Fixes a non-yielding scheduler dump issue with
support.microsoft.comqds!CDBQDS::AbortQdsBackgroundTaskthat may occur when the list of Query Store (QDS) background tasks is large and either QDS is disabled or SQL Server shuts down. -
5.
Fixes an issue in which uninitialized memory is returned in some rare cases when using limited length parameters with
support.microsoft.comREPLACEfunction. -
6.
Fixes an issue in which an access violation dump occurs instead of returning the correct error message when using
support.microsoft.comPARSEorTRY_PARSEwith special floating-point values such as NaN (Not-a-Number) or Infinity as input. -
7.
Fixes an issue in which uninitialized memory can be read in some rare cases when using variable length parameters.
support.microsoft.com -
8.
Fixes an access violation that you encounter when a query calls a multi-statement table-valued function (MSTVF) that has a common language runtime (CLR) expression in its parameter and triggers interleaved execution.
support.microsoft.com -
9.
After applying this fix, the value of the
support.microsoft.comPendingFileRenameOperationsregistry key is deleted when applying updates to SQL Server. -
10.
Adds memory limit support for Control Groups (cgroups) v2 in Platform Abstraction Layer (SQLPAL).
support.microsoft.com -
11.
Adds support for "WITH SID=sid, TYPE=[E|X]" in the
support.microsoft.comCREATE USERsyntax in SQL Server 2022 by using trace flag 11953. -
12.
Queries that use the built-in
support.microsoft.comSESSION_CONTEXTfunction might return incorrect results or trigger access violation (AV) dump files when run in parallel query plans.
Checked automatically: 8 of 8 checks passed, 12 quoted passages · compared with Microsoft's page on Oct 20, 2026
- Quotes found in the official pages: passed
- Numbers found in the sources: passed
- Vulnerabilities from the dossier only: passed
- Links to allowed domains only: passed
- Every official change covered: passed
- Readable plain text: passed
- Changes confirmed by the file list: passed
- Sources agree: passed
A second AI read the text against the sources: correctness 4/5, clarity 4/5, completeness 5/5. How we work
Published by The Update Bureau. Written with AI from Microsoft's own documents, checked by rules and a second AI. How we work · Report a mistake