Natively Compiled Stored Procedures

Natively compiled stored procedures can only access memory-optimized tables and currently support a smaller subset of T-SQL features as compared to the query interop engine.

The performance benefit of using natively compiled stored procedures increases with the number of rows and the complexity of the procedure code, or if the number of executions per second of the stored procedure is very high. If a procedure needs to process just a single row only occasionally, it’s unlikely to benefit much from native compilation. A natively compiled stored procedure will likely exhibit much better performance improvement than an interpreted procedure if it uses aggregation, nested-loop joins, multi-statement SELECT, INSERT ...

Get Microsoft SQL Server 2014 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.