FIX: Hash or merge join hints may be ignored when you execute a query in SQL Server 2012 or SQL Server 2014

Applies to: SQL Server 2012 DeveloperSQL Server 2012 EnterpriseSQL Server 2012 Standard

Symptoms


When you execute a query in Microsoft SQL Server 2012 or SQL Server 2014, SQL Server may produce a query plan that uses a nested loop join, even if an explicit join hint is used. This issue occurs in some rare conditions, depending on the query and data shape.

Note To enable this fix, you have to turn on trace flag 4199.

Status


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