In SQL Server 2014 CTP2 in the AdventureWorks2012 database, execute the following batch: The first query uses the legacy cardinality estimator and the second query uses the new cardinality estimator. Both queries are referencing a multi-statement table valued function. Looking at the plan tree view in SQL Sentry Plan Explorer for the legacy CE plan, […]