I am trying to create my first memory optimized table using SQL Server 2014. I first created the necessary file group and file without issue. But when I try to create a simple table using
CREATE TABLE [dbo].[tblSessionDevices_Optimized](
[SessionInfo_Id] [int] IDENTITY NOT NULL PRIMARY KEY NONCLUSTERED ,
[Device_Id] INT NOT NULL INDEX IX_SessionInfoOptimize_DeviceID
)
WITH (Memory_Optimized = ON)
I get the error:
Msg 41312, Level 16, State 4, Line 0 Unable to call into the C compiler. GetLastError = 1392.
I'm guessing that the SQL Server account calling the compiler does not have access to the directory where the compiler resides, but just can't put my finger on it.
ERROR_FILE_CORRUPT. This is not the kind of error you'd expect over a simple access issue. Check the event viewer and/or the SQL Server error log for possible disk problems. This could also be caused by a file system filter interfering (antivirus/malware). You could use Process Monitor to dig into the exact call that's failing, if necessary.