更改内存优化 SQL 服务器 2014 Table

Alter Memory Optimized SQL Server 2014 Table

我可以更改我的内存优化 table 吗?比如添加列或更改数据类型等。如果是,该怎么做? 我正在使用 SQL Server 2014

谢谢

根据Altering Memory-Optimized Tables (SQL Server 2014)

Performing ALTER operations on memory-optimized tables is not supported. This includes such operations as changing the bucket_count, adding or removing an index, and adding or removing a column. This topic provides guidelines on how to update memory-optimized tables.

Updating the definition of a memory-optimized table requires you to create a new table with the updated table definition, copy the data to the new table, and start using the new table.

但是 SQL Server 2016 是可能的:

In SQL Server 2016 Community Technology Preview 2 (CTP2) you can perform ALTER operations on memory-optimized tables by using the ALTER TABLE statement. The database application can continue to run, and any operation that is accessing the table is blocked until the alteration process is completed.

In the previous release of SQL Server, you had to manually complete several steps to update memory-optimized tables.