--====================================================== -- Create Memory Optimized Table Template -- Use the Specify Values for Template Parameters command (Ctrl-Shift-M) to fill in the parameter values below. -- This template creates a memory optimized table and indexes on the memory optimized table. -- The database must have a MEMORY_OPTIMIZED_DATA filegroup before the memory optimized table can be created. --====================================================== USE GO --Drop table if it already exists. IF OBJECT_ID('.','U') IS NOT NULL DROP TABLE . GO CREATE TABLE . ( , , INDEX NONCLUSTERED (), CONSTRAINT PRIMARY KEY NONCLUSTERED (), -- See SQL Server Books Online for guidelines on determining appropriate bucket count for the index INDEX HASH () WITH (BUCKET_COUNT = ) ) WITH (MEMORY_OPTIMIZED = ON, DURABILITY = ) GO