SQLServerUpdates.com
  • Home – Most Recent Updates
    • SQL Server 2022 Updates
    • SQL Server 2019 Updates
    • SQL Server 2017 Updates
    • SQL Server 2016 Updates
    • SQL Server 2014 Updates
    • SQL Server 2012 Updates
    • SQL Server 2008 R2 Updates
    • SQL Server 2008 Updates
  • Download SQL Server
  • Subscribe to Updates
  • Contact Us
    • Frequently Asked Questions

Announcing SQL Server 2019 CU21, 2022 CU5

3 years ago
Brent Ozar
SQL Server 2019, SQL Server 2022
4 Comments

Today, Microsoft dropped SQL Server 2019 CU21 and SQL Server 2022 CU5. (No update for 2017.)

The 2019 CU21 has a couple known issues, and they’re fairly edge case:

  • If you’re using SESSION_CONTEXT, you could get incorrect results with parallel plans. The fix in CU14 turns out to create access violation dump files. The resolution is to use trace flags 9432 to disable the CU14 fix, and 11042 to disable parallelism when using SESSION_CONTEXT. They’re working on a fix for a future CU.
  • If you’re using Managed Instance Link and you’re using memory-optimized tables, FileStream, or multiple log files, the database may no longer sync. The fix for this is rather complex – best to hit the CU21 page for that one.

2019 CU21 fixes a lot of issues around In-Memory OLTP, plus a few interesting query ones:

  • Fixes incorrect results for queries that filter on ROW_NUMBER and involve nullable columns.
  • Fixes errors and access violations in the case of multiple occurrences of the same scalar subquery.
  • Improves the cardinality estimation for AND predicates.
  • Fixes inconsistent results caused by a parallel spool in a plan for INSERT, UPDATE, or DELETE queries.
  • Improves change tracking cleanup queries if you use trace flags 8286 and 8287 to force a different query plan.

2022 CU5 also fixes a lot of In-Memory OLTP stuff, plus:

  • Fixes memory leak when you run queries that use an equals (=) predicate on a clustered columnstore index.
  • Fixes race conditions when parameter-sensitive plan optimization happens with Query Store turned on.
  • Fixes incorrect results when you have indexes with a DESC sort order.
Brent Ozarhttps://sqlserverupdates.com
I make Microsoft SQL Server faster and more reliable. I love teaching, travel, and laughing.
Previous Post
SQL Server 2022 CU3: How Stella Got Her Groove Back
Next Post
Announcing SQL Server 2019 CU27

4 Comments. Leave new

  • happydba
    June 15, 2023 3:05 pm

    “Fixes incorrect results for queries that filter on ROW_NUMBER and involve nullable columns.
    Fixes errors and access violations in the case of multiple occurrences of the same scalar subquery.
    Improves the cardinality estimation for AND predicates.”

    *Buries face in hands*

    Reply
    • Megan Brooks
      June 16, 2023 4:08 pm

      There’s something about “incorrect results” that can make a person want to do that. Especially if that person regularly uses ROW_NUMBER.

      Reply
  • Marko
    June 22, 2023 12:31 am

    In 2022 CU5 is there a special case for “Fixes incorrect results when you have indexes with a DESC sort order.” or was this a general bug of 2022 version?

    Reply
    • Brent Ozar
      July 10, 2024 8:18 am

      Your best bet for specific bug questions would be to open a support case with Microsoft.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.

Subscribe

Want to get an email when Microsoft publishes a new SP or CU for SQL Server? Subscribe here.

Recent Updates

  • New Security Updates to Fix SQL Injection Vulnerabilities August 13, 2025
  • A Bunch of Security Updates for 2016-2022 Just Dropped. July 9, 2025
  • New Security Patches for SQL Server 2022, 2019, 2017, and 2016 October 8, 2024
  • Announcing SQL Server 2022 CU14 July 23, 2024
  • Security Update to Avoid Remote Code Execution July 10, 2024

© Brent Ozar Unlimited®. All Rights Reserved. Privacy Policy