Adding an index to SQL Server 2016 results in the following SQL statement. "ALTER TABLE "dbo"."SnapShots2" ADD INDEX "Index 3" ("DeviceMessageID");"
When executed this gives the error: "The operation 'ALTER TABLE ADD INDEX' is supported only with memory optimized tables."
The following statement works: "CREATE INDEX "Index 2" ON snapshots2 ("DeviceMessageID");"
If I try to execute a copy of the SQL in the "CREATE Code" tab (after making a new table name), it fails for several reasons.
- REAL(24,0), I have to change it to REAL.
- FLOAT(53,0), I have to change it to FLOAT.
- "COLLATE 'SQL_Latin1_General_CP1_CI_AS'" provides the error "Incorrect syntax near 'SQL_Latin1_General_CP1_CI_AS'." so it has to be removed.
- the "FOREIGN KEY INDEX" entries have a syntax error.
- The "CONSTRAINT" entries have a syntax error.
- The geography columns are listed as column type "unknown"