FIX: Long query contains specific expressions receives syntax error if forced parameterization is enabled in SQL Server 2016

When you execute a query statement that contains more than 4,000 characters in SQL Server 2016, and the query statement contains some specific multi-word clauses, such as WITHIN GROUP, AT TIME ZONE; if forced parameterization is enabled, you may receive a syntax error.

The issue was first fixed in the following cumulative update of SQL Server: Recommendation: Install the latest cumulative update 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. We recommend that you download and install the latest cumulative updates for SQL Server:
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Learn about the terminology that Microsoft uses to describe software updates.

Article ID: 3175205 - Last Review: 07/25/2016 22:32:00 - Revision: 1.0

Microsoft SQL Server 2016 Developer, Microsoft SQL Server 2016 Enterprise, Microsoft SQL Server 2016 Enterprise Core, Microsoft SQL Server 2016 Standard

  • kbqfe kbfix kbexpertiseadvanced kbsurveynew KB3175205