1
0
mirror of https://github.com/Microsoft/sql-server-samples.git synced 2025-12-08 14:58:54 +00:00

removing compression from history table for standard edition

This commit is contained in:
Jos de Bruijn
2016-06-02 09:45:56 -07:00
parent 195dd38010
commit d46bc4bc24

View File

@ -359,7 +359,8 @@ BEGIN
SET @SQL += @CrLf + N'WITH ' + @CrLf + N'(' + @CrLf
+ @Indent + N'SYSTEM_VERSIONING = ON (HISTORY_TABLE = '
+ QUOTENAME(@SchemaName) + N'.' + QUOTENAME(@TableName + N'_' + @TemporalTableSuffix) + N')' + @CrLf
+ N')';
+ N');' + @CrLf;
+ N'ALTER INDEX ix_' + @TableName + N'_' + @TemporalTableSuffix + N'ON ' + QUOTENAME(@SchemaName) + N'.' + QUOTENAME(@TableName + N'_' + @TemporalTableSuffix) + N' REBUILD PARTITION = ALL WITH (DATA_COMPRESSION = NONE)'
END;
SET @SQL += N';' + @CrLf + @GO;