KB5000652 - FIX: Non-yielding condition occurs when you run a query in batch mode in SQL Server 2016

Applies To
SQL Server 2016

Symptoms

When you run a query in batch mode in Microsoft SQL Server 2016, a non-yielding condition occurs inside sqlmin!CBpSortCompareOneColumn<LineNumber>::OptCompareOneColumn.

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Resolution

This issue is fixed in the following cumulative update for SQL Server:

About cumulative updates for SQL Server

Each new cumulative update for SQL Server contains all the hotfixes and security fixes that were in the previous build. We recommend that you install the latest build for your version of SQL Server:

Latest cumulative update for SQL Server 2016

References

Learn about the terminology  that Microsoft uses to describe software updates.