We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d87774 commit bcd0562Copy full SHA for bcd0562
Server/Index.cs
@@ -86,6 +86,13 @@ public string GetQuery() {
86
sql = $"ALTER INDEX {fullIndexName} REORGANIZE PARTITION = {partition}" +
87
$"{(FixType == IndexOp.REORGANIZE_COMPRESS_ALL_ROW_GROUPS ? $"{Environment.NewLine} WITH (COMPRESS_ALL_ROW_GROUPS = ON)" : "")};";
88
break;
89
+
90
+ case IndexOp.TRUNCATE_TABLE:
91
+ sql = IsPartitioned
92
+ ? $"TRUNCATE TABLE {objectName} WITH (PARTITIONS ({partition}));"
93
+ : $"TRUNCATE TABLE {objectName};";
94
+ break;
95
96
}
97
98
0 commit comments