Sql server 如何为SQL Server 2016 Stretch数据库的新功能确定候选表?
SQL Server 2016有一项新功能,即拉伸数据库,允许您透明地归档历史数据。但我想知道哪些表适合此功能?根据 什么样的数据库和表是拉伸数据库的候选对象? Stretch Database以具有大量数据的事务数据库为目标 历史数据,通常存储在少量表中。这些 表可能包含超过十亿行 在SQL Server 2016社区技术预览2(CTP2)中,展开 数据库迁移整个表。这假设您已经移动了 将历史数据放入与当前数据分开的表中 使用Stretch Database Advisor,这是SQL Server 2016升级的一项功能 Advisor,用于标识拉伸数据库的数据库和表。对于 有关更多信息,请参见标识拉伸数据库的数据库和表 通过运行Stretch Database Advisor (未来可能会发生变化): 表属性Sql server 如何为SQL Server 2016 Stretch数据库的新功能确定候选表?,sql-server,sql-server-2016,Sql Server,Sql Server 2016,SQL Server 2016有一项新功能,即拉伸数据库,允许您透明地归档历史数据。但我想知道哪些表适合此功能?根据 什么样的数据库和表是拉伸数据库的候选对象? Stretch Database以具有大量数据的事务数据库为目标 历史数据,通常存储在少量表中。这些 表可能包含超过十亿行 在SQL Server 2016社区技术预览2(CTP2)中,展开 数据库迁移整个表。这假设您已经移动了 将历史数据放入与当前数据分开的表中 使用Stretch Database Advisor,这是SQL Ser
More than 1,023 columns
More than 998 indexes
Tables that contain FILESTREAM data
FileTables
Replicated tables
Tables that are actively using Change Tracking or Change Data Capture
Memory-optimized tables
You can't enable Stretch for a table that has a column named [batchID--N]
or an index named [idx--batchID--N] where N is the object ID of the table.
timestamp
sql_variant
XML
geometry
geography
hierarchyid
CLR user-defined types (UDTs)
Columns that are Always Encrypted
数据类型和列属性
More than 1,023 columns
More than 998 indexes
Tables that contain FILESTREAM data
FileTables
Replicated tables
Tables that are actively using Change Tracking or Change Data Capture
Memory-optimized tables
You can't enable Stretch for a table that has a column named [batchID--N]
or an index named [idx--batchID--N] where N is the object ID of the table.
timestamp
sql_variant
XML
geometry
geography
hierarchyid
CLR user-defined types (UDTs)
Columns that are Always Encrypted
列类型
COLUMN_SET
Computed columns
约束条件
Check constraints
Foreign key constraints that reference the table
Default constraints
索引
XML indexes
Full text indexes
Spatial indexes
Clustered columnstore indexes
Indexed views that reference the table
此功能对临时表也有帮助吗?通常临时表会清空并重新加载。它没有“历史数据”,因为数据不会在其中停留很长时间。大多数限制都会消失。在印度SSGAS最近的一次演讲中,AlwaysOn。始终加密和索引视图在下一个CTP版本中被提到。查看每个CTP放置的发行说明,了解更多删除内容。