FIX: Hash or merge join hints may be ignored when you execute a query in SQL Server 2012 or SQL Server 2014
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.
The issue was first fixed in the following cumulative update of SQL Server:
- Cumulative Update 2 for SQL Server 2014 SP1
- Cumulative Update 9 for SQL Server 2014
- Cumulative Update 7 for SQL Server 2012 SP2
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.
Article ID: 3064454 - Last Review: 08/17/2015 19:12:00 - Revision: 2.0
Microsoft SQL Server 2012 Service Pack 2, Microsoft SQL Server 2014 Service Pack 1
- kbqfe kbsurveynew kbexpertiseadvanced kbfix KB3064454