O'Reilly logo

Microsoft SQL Server 2014 Unleashed by Paul Bertucci, Alex T. Silverstein, Chris Gallelli, Ray Rankins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required