Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Symptoms

Assume that you enable Automatic Query Tuning in SQL Server 2017 and 2019. When executing many concurrent stored procedures, you may encounter COMPILE blocking scenario under the following conditions:

  1. Execute the stored procedure.

  2. Use Query Data Store (QDS) to force the plan.

  3. Run sp_recompile on the stored procedure to forcibly remove the plan from procedure cache.

  4. Run the stored procedure concurrently on many separate sessions.

Cause

After forcing a plan by using Query Data Store and removing it from the procedure cache, the plan is no longer cached and concurrent execution results in compile blocking.

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 updates for SQL Server:

About cumulative updates for SQL Server:

Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:

References

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

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×