KB5050771: Cumulative update for SQL Server 2022, CU branch, March 2025. Contained availability groups gain instance-level workload groups
CU18 adds 11 fixes for SQL Server 2022 and lets contained availability groups use instance-level Resource Governor workload groups. Queries using SESSION_CONTEXT might still return incorrect results or trigger access violation dumps in parallel plans.
Does it affect you? Applies to: SQL Server 2022 instances on Windows or Linux, in any supported language. The update refreshes the components installed on the instance; its Analysis Services build is 16.0.43.242.
Review notes Additional details from the official release notes (2) Read notes
- What changes DQS is supported only in Enterprise and Developer editions. This fix prevents installation in Standard or Web edition and applies to new installations only.
- What to do KB5050771 has been superseded by KB5054531. Microsoft recommends installing the latest available cumulative update.
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 10 changes
Backup Restore
For: SQL Server administrators using availability groups
-
A copy-only filegroup backup on an availability group secondary replica no longer fails with an unsupported-backup error.1
Fixes errors 3059 and 3013 when running the backup.
Linux
For: SQL Server administrators on Linux
-
Some transactions no longer encounter extended waits during flush operations when the alternate write-through setting is enabled.2
Fixes a race condition during flush operations when
control.alternatewritethrough = 1. - Self-signed certificates created for SQL Server on Linux no longer might have a negative serial number.3
Management Services
-
Database Mail log messages containing non-ASCII characters no longer might appear as question marks.4
Fixes values stored in the
msdbdatabase'ssysmail_logsystem table and displayed in thesysmail_event_logview. The issue is more common on localized SQL Server versions, such as Japanese.
Metadata
For: SQL Server administrators using external tables
-
The
sys.computed_columnsview shows the correct definition for external tables that use file metadata columns.5
Replication
-
Manual change tracking cleanup no longer sets an invalid cleanup version to a negative value when the table name is omitted.6
Applies when the
TableNameparameter isn't passed to the manual change tracking cleanup stored procedure. -
Updates to a second article replicate correctly in the specified two-article setup when accelerated database recovery is enabled.7
Applies to replication with two articles for a single table when accelerated database recovery (ADR) is enabled on the database.
Search
-
Full-text search correctly indexes a hyperlink in a
.docxfile when it starts a paragraph and the previous paragraph has no trailing whitespace.8Trace flag7686must be enabled for this fix.
SQL Agent
-
The SQL Server Agent history cleanup job no longer logs a failed login when its service account lacks permission to connect to another instance.9
Fixes the 'Erase Phantom System Health Records' step in
syspolicy_purge_historyand the resulting error 18456, state 5.
Patching
For: SQL Server administrators installing SQL Server
-
SQL Server Setup no longer allows Data Quality Services to be installed in Standard or Web edition. This applies to new installations only.10
DQS is supported only in SQL Server Enterprise and Developer editions. The fix also prevents its automatic selection during Windows Server Failover Cluster setup.
Improvement 1 change
High Availability and Disaster Recovery
For: SQL Server administrators using contained availability groups
- Contained availability groups can use Resource Governor workload groups defined at the SQL Server instance level.11
Known issues
-
Incorrect behavior of SESSION_CONTEXT in parallel plans
Queries using
SESSION_CONTEXTmight return incorrect results or trigger access violation dump files when run in parallel query plans, particularly if the 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-03-13
- Classification
- Updates
- Type
- Cumulative update
- Servicing branch
- CU
- Restart
- Required
- Replaces
- KB5048038, KB5048033, KB5041321, KB5038325
- Replaced by
- KB5054531
| Version | Build | Channel |
|---|---|---|
| 2022 | 16.0.4185.3 | 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 issue in which a copy-only filegroup backup on an availability group secondary replica fails with the following errors:
support.microsoft.com -
2.
Fixes a race condition that you encounter during flush operations when configuring
support.microsoft.comcontrol.alternatewritethrough = 1, which causes extended waits for some transactions. -
3.
Fixes an issue in which a self-signed certificate created for SQL Server on Linux might include a negative serial number.
support.microsoft.com -
4.
Fixes an issue in Database Mail in which the information logged into the
support.microsoft.comsysmail_logsystem table andsysmail_event_logview in the msdb database might be stored and displayed as "???" -
5.
Fixes an issue in which the
support.microsoft.comsys.computed_columnsview doesn't show the proper definition when using external tables with file metadata columns. -
6.
Fixes an issue in which the manual change tracking cleanup stored procedure incorrectly sets the invalid cleanup version to negative when the
support.microsoft.comTableNameparameter isn't passed. -
7.
Fixes an issue in which the second article might not have updates correctly replicated if accelerated database recovery (ADR) is enabled on the database using replication with two articles for a single table.
support.microsoft.com -
8.
Fixes incorrect results that you encounter when you create a full-text index for a
support.microsoft.com.docxfile that contains a hyperlink at the start of a paragraph but without a trailing whitespace at the end of the previous paragraph -
9.
Fixes an error that you encounter when the 'Erase Phantom System Health Records' step in the SQL Server Agent job
support.microsoft.comsyspolicy_purge_historytries to connect to other instances and the account running the service doesn't have permission to connect. -
10.
After applying this fix, SQL Server Setup won't allow DQS to be installed in SQL Server Standard or Web edition. Note: This fix applies to new installations only.
support.microsoft.com -
11.
Makes the contained availability group (AG) available to use resource governor workload group that's defined at the instance level.
support.microsoft.com -
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. This issue occurs because of the manner in whichSESSION_CONTEXTinteracts with parallel execution threads, particularly if the session is reset for reuse.
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 3/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