Skip to content

Commit d46bc4b

Browse files
committed
removing compression from history table for standard edition
1 parent 195dd38 commit d46bc4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

samples/databases/wide-world-importers/wwi-database-scripts/2-wwi-construct-database-from-metadata-tables.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,8 @@ BEGIN
359359
SET @SQL += @CrLf + N'WITH ' + @CrLf + N'(' + @CrLf
360360
+ @Indent + N'SYSTEM_VERSIONING = ON (HISTORY_TABLE = '
361361
+ QUOTENAME(@SchemaName) + N'.' + QUOTENAME(@TableName + N'_' + @TemporalTableSuffix) + N')' + @CrLf
362-
+ N')';
362+
+ N');' + @CrLf;
363+
+ N'ALTER INDEX ix_' + @TableName + N'_' + @TemporalTableSuffix + N'ON ' + QUOTENAME(@SchemaName) + N'.' + QUOTENAME(@TableName + N'_' + @TemporalTableSuffix) + N' REBUILD PARTITION = ALL WITH (DATA_COMPRESSION = NONE)'
363364
END;
364365

365366
SET @SQL += N';' + @CrLf + @GO;

0 commit comments

Comments
 (0)