FIX: Access violation occurs in compile code when you parse the forced plan in SQL Server 2016 and 2017

Applies to: SQL Server 2017 Developer on WindowsSQL Server 2017 Enterprise on WindowsSQL Server 2017 Enterprise Core on Windows More


Consider the following scenario:

  • You use Showplan XML for a forcing plan operation in SQL Server 2016 and 2017. 
  • The remote query tag in the Showplan XML is larger than 8 kilobytes (KB) characters.    
  • You try to parse the forced plan.       

In this scenario, access violation may occur in compile code.


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

      Cumulative Update 12 for SQL Server 2017

      Cumulative Update 4 for SQL Server 2016 SP2


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


Learn about the terminology Microsoft uses to describe software updates.