Native stored procedures in SQL Server 2014 CPT2
Procedure loaded into memory in native code
consisting of processor instructions that can be executed directly by the CPU,
without the need for further compilation or interpretation.
Syntax:
Eg:- Memory-Optimized Tables
Create table dbo.T1 (
C1 int not null primary key NONCLUSTERED HASH WITH (BUCKET_COUNT=2000000)
) with (MEMORY_OPTIMIZED=ON)
- Natively Compiled Stored Procedures Native stored procedures
Create procedure dbo.p1 WITH NATIVE_COMPIALATION, SCHEMABINDING, EXECUTE AS OWNER
AS
BEGIN ATOMIC with (TRANSACTION ISOLATION LEVEL=snapshot, LANGUAGE=N'us_english')
Select 1
END
Comments
Post a Comment