diff --git a/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.cs b/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.cs
index b596a194..f91e8cd3 100644
--- a/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.cs
+++ b/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.cs
@@ -9133,6 +9133,102 @@ namespace Microsoft.SqlTools.ServiceLayer
}
}
+ public static string MemoryOptimizedTableMustHaveNonClusteredPrimaryKeyRuleDescription
+ {
+ get
+ {
+ return Keys.GetString(Keys.MemoryOptimizedTableMustHaveNonClusteredPrimaryKeyRuleDescription);
+ }
+ }
+
+ public static string TemporalTableMustHavePrimaryKeyRuleDescription
+ {
+ get
+ {
+ return Keys.GetString(Keys.TemporalTableMustHavePrimaryKeyRuleDescription);
+ }
+ }
+
+ public static string TemporalTableMustHavePeriodColumnsRuleDescription
+ {
+ get
+ {
+ return Keys.GetString(Keys.TemporalTableMustHavePeriodColumnsRuleDescription);
+ }
+ }
+
+ public static string PeriodColumnsRuleMoreThanOneIssueDescription
+ {
+ get
+ {
+ return Keys.GetString(Keys.PeriodColumnsRuleMoreThanOneIssueDescription);
+ }
+ }
+
+ public static string PeriodColumnsRuleNotMatchIssueDescription
+ {
+ get
+ {
+ return Keys.GetString(Keys.PeriodColumnsRuleNotMatchIssueDescription);
+ }
+ }
+
+ public static string ColumnsInPrimaryKeyCannotBeNullableRuleDescription
+ {
+ get
+ {
+ return Keys.GetString(Keys.ColumnsInPrimaryKeyCannotBeNullableRuleDescription);
+ }
+ }
+
+ public static string OnlyDurableMemoryOptimizedTableCanBeSystemVersionedRuleDescription
+ {
+ get
+ {
+ return Keys.GetString(Keys.OnlyDurableMemoryOptimizedTableCanBeSystemVersionedRuleDescription);
+ }
+ }
+
+ public static string TableMustHaveAtLeastOneColumnRuleDescription
+ {
+ get
+ {
+ return Keys.GetString(Keys.TableMustHaveAtLeastOneColumnRuleDescription);
+ }
+ }
+
+ public static string MemoryOptimizedTableIdentityColumnRuleDescription
+ {
+ get
+ {
+ return Keys.GetString(Keys.MemoryOptimizedTableIdentityColumnRuleDescription);
+ }
+ }
+
+ public static string TableShouldAvoidHavingMultipleEdgeConstraintsRuleDescription
+ {
+ get
+ {
+ return Keys.GetString(Keys.TableShouldAvoidHavingMultipleEdgeConstraintsRuleDescription);
+ }
+ }
+
+ public static string MemoryOptimizedCannotBeEnabledWhenNotSupportedRuleDescription
+ {
+ get
+ {
+ return Keys.GetString(Keys.MemoryOptimizedCannotBeEnabledWhenNotSupportedRuleDescription);
+ }
+ }
+
+ public static string MutipleCreateTableStatementsInScriptRuleDescription
+ {
+ get
+ {
+ return Keys.GetString(Keys.MutipleCreateTableStatementsInScriptRuleDescription);
+ }
+ }
+
public static string ConnectionServiceListDbErrorNotConnected(string uri)
{
return Keys.GetString(Keys.ConnectionServiceListDbErrorNotConnected, uri);
@@ -9443,6 +9539,61 @@ namespace Microsoft.SqlTools.ServiceLayer
return Keys.GetString(Keys.UnknownEnumString, name);
}
+ public static string IndexMustHaveColumnsRuleDescription(string indexName)
+ {
+ return Keys.GetString(Keys.IndexMustHaveColumnsRuleDescription, indexName);
+ }
+
+ public static string ForeignKeyMustHaveColumnsRuleDescription(string foreignKeyName)
+ {
+ return Keys.GetString(Keys.ForeignKeyMustHaveColumnsRuleDescription, foreignKeyName);
+ }
+
+ public static string ColumnCanOnlyAppearOnceInIndexRuleDescription(string columnName, string indexName, int rowNumber)
+ {
+ return Keys.GetString(Keys.ColumnCanOnlyAppearOnceInIndexRuleDescription, columnName, indexName, rowNumber);
+ }
+
+ public static string ColumnCanOnlyAppearOnceInForeignKeyRuleDescription(string columnName, string foreignKeyName, int rowNumber)
+ {
+ return Keys.GetString(Keys.ColumnCanOnlyAppearOnceInForeignKeyRuleDescription, columnName, foreignKeyName, rowNumber);
+ }
+
+ public static string ColumnCanOnlyAppearOnceInForeignKeyRuleForeignColumnDescription(string columnName, string foreignKeyName, int rowNumber)
+ {
+ return Keys.GetString(Keys.ColumnCanOnlyAppearOnceInForeignKeyRuleForeignColumnDescription, columnName, foreignKeyName, rowNumber);
+ }
+
+ public static string NoDuplicateConstraintNameRuleDescription(string constraintName, int rowNumber)
+ {
+ return Keys.GetString(Keys.NoDuplicateConstraintNameRuleDescription, constraintName, rowNumber);
+ }
+
+ public static string NoDuplicateColumnNameRuleDescription(string columnName, int rowNumber)
+ {
+ return Keys.GetString(Keys.NoDuplicateColumnNameRuleDescription, columnName, rowNumber);
+ }
+
+ public static string NoDuplicateIndexNameRuleDescription(string indexName, int rowNumber)
+ {
+ return Keys.GetString(Keys.NoDuplicateIndexNameRuleDescription, indexName, rowNumber);
+ }
+
+ public static string EdgeConstraintMustHaveClausesRuleDescription(string name)
+ {
+ return Keys.GetString(Keys.EdgeConstraintMustHaveClausesRuleDescription, name);
+ }
+
+ public static string EdgeConstraintNoRepeatingClausesRuleDescription(string pair, int rowNumber)
+ {
+ return Keys.GetString(Keys.EdgeConstraintNoRepeatingClausesRuleDescription, pair, rowNumber);
+ }
+
+ public static string ColumnCannotBeListedMoreThanOnceInPrimaryKeyRuleDescription(string columnName)
+ {
+ return Keys.GetString(Keys.ColumnCannotBeListedMoreThanOnceInPrimaryKeyRuleDescription, columnName);
+ }
+
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class Keys
{
@@ -13051,6 +13202,75 @@ namespace Microsoft.SqlTools.ServiceLayer
public const string TableColumnIsComputedPersistedNullableDescription = "TableColumnIsComputedPersistedNullableDescription";
+ public const string IndexMustHaveColumnsRuleDescription = "IndexMustHaveColumnsRuleDescription";
+
+
+ public const string ForeignKeyMustHaveColumnsRuleDescription = "ForeignKeyMustHaveColumnsRuleDescription";
+
+
+ public const string ColumnCanOnlyAppearOnceInIndexRuleDescription = "ColumnCanOnlyAppearOnceInIndexRuleDescription";
+
+
+ public const string ColumnCanOnlyAppearOnceInForeignKeyRuleDescription = "ColumnCanOnlyAppearOnceInForeignKeyRuleDescription";
+
+
+ public const string ColumnCanOnlyAppearOnceInForeignKeyRuleForeignColumnDescription = "ColumnCanOnlyAppearOnceInForeignKeyRuleForeignColumnDescription";
+
+
+ public const string NoDuplicateConstraintNameRuleDescription = "NoDuplicateConstraintNameRuleDescription";
+
+
+ public const string NoDuplicateColumnNameRuleDescription = "NoDuplicateColumnNameRuleDescription";
+
+
+ public const string NoDuplicateIndexNameRuleDescription = "NoDuplicateIndexNameRuleDescription";
+
+
+ public const string EdgeConstraintMustHaveClausesRuleDescription = "EdgeConstraintMustHaveClausesRuleDescription";
+
+
+ public const string EdgeConstraintNoRepeatingClausesRuleDescription = "EdgeConstraintNoRepeatingClausesRuleDescription";
+
+
+ public const string MemoryOptimizedTableMustHaveNonClusteredPrimaryKeyRuleDescription = "MemoryOptimizedTableMustHaveNonClusteredPrimaryKeyRuleDescription";
+
+
+ public const string TemporalTableMustHavePrimaryKeyRuleDescription = "TemporalTableMustHavePrimaryKeyRuleDescription";
+
+
+ public const string TemporalTableMustHavePeriodColumnsRuleDescription = "TemporalTableMustHavePeriodColumnsRuleDescription";
+
+
+ public const string PeriodColumnsRuleMoreThanOneIssueDescription = "PeriodColumnsRuleMoreThanOneIssueDescription";
+
+
+ public const string PeriodColumnsRuleNotMatchIssueDescription = "PeriodColumnsRuleNotMatchIssueDescription";
+
+
+ public const string ColumnsInPrimaryKeyCannotBeNullableRuleDescription = "ColumnsInPrimaryKeyCannotBeNullableRuleDescription";
+
+
+ public const string OnlyDurableMemoryOptimizedTableCanBeSystemVersionedRuleDescription = "OnlyDurableMemoryOptimizedTableCanBeSystemVersionedRuleDescription";
+
+
+ public const string TableMustHaveAtLeastOneColumnRuleDescription = "TableMustHaveAtLeastOneColumnRuleDescription";
+
+
+ public const string MemoryOptimizedTableIdentityColumnRuleDescription = "MemoryOptimizedTableIdentityColumnRuleDescription";
+
+
+ public const string TableShouldAvoidHavingMultipleEdgeConstraintsRuleDescription = "TableShouldAvoidHavingMultipleEdgeConstraintsRuleDescription";
+
+
+ public const string ColumnCannotBeListedMoreThanOnceInPrimaryKeyRuleDescription = "ColumnCannotBeListedMoreThanOnceInPrimaryKeyRuleDescription";
+
+
+ public const string MemoryOptimizedCannotBeEnabledWhenNotSupportedRuleDescription = "MemoryOptimizedCannotBeEnabledWhenNotSupportedRuleDescription";
+
+
+ public const string MutipleCreateTableStatementsInScriptRuleDescription = "MutipleCreateTableStatementsInScriptRuleDescription";
+
+
private Keys()
{ }
diff --git a/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.resx b/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.resx
index 355fe072..0a9f07ce 100644
--- a/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.resx
+++ b/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.resx
@@ -4983,4 +4983,107 @@ The Query Processor estimates that implementing the following index could improv
Whether the computed column can have a NULL value (NOT NULL can only be specified if the column is persisted)
+
+ Index '{0}' does not have any columns associated with it.
+ .
+ Parameters: 0 - indexName (string)
+
+
+ Foreign key '{0}' does not have any columns specified.
+ .
+ Parameters: 0 - foreignKeyName (string)
+
+
+ Column with name '{0}' has already been added to the index '{1}'. Row number: {2}.
+ .
+ Parameters: 0 - columnName (string), 1 - indexName (string), 2 - rowNumber (int)
+
+
+ Column with name '{0}' has already been added to the foreign key '{1}'. Row number: {2}.
+ .
+ Parameters: 0 - columnName (string), 1 - foreignKeyName (string), 2 - rowNumber (int)
+
+
+ Foreign column with name '{0}' has already been added to the foreign key '{1}'. Row number: {2}.
+ .
+ Parameters: 0 - columnName (string), 1 - foreignKeyName (string), 2 - rowNumber (int)
+
+
+ The name '{0}' is already used by another constraint. Row number: {1}.
+ .
+ Parameters: 0 - constraintName (string), 1 - rowNumber (int)
+
+
+ The name '{0}' is already used by another column. Row number: {1}.
+ .
+ Parameters: 0 - columnName (string), 1 - rowNumber (int)
+
+
+ The name '{0}' is already used by another index. Row number: {1}.
+ .
+ Parameters: 0 - indexName (string), 1 - rowNumber (int)
+
+
+ Edge constraint '{0}' does not have any clauses specified.
+ .
+ Parameters: 0 - name (string)
+
+
+ The pair '{0}' is already defined by another clause in the edge constraint. Row number: {1}.
+ .
+ Parameters: 0 - pair (string), 1 - rowNumber (int)
+
+
+ Memory-optimized table must have non-clustered primary key.
+
+
+
+ System versioned table must have primary key.
+
+
+
+ System versioned table must have the period columns defined.
+
+
+
+ Period columns (Generated Always As Row Start/End) can only be defined once.
+
+
+
+ Period columns (Generated Always As Row Start/End) must be defined as pair. If one is defined, the other must also be defined.
+
+
+
+ Columns in primary key cannot be nullable.
+
+
+
+ Only durable (DURABILITY = SCHEMA_AND_DATA) memory-optimized tables can be system-versioned.
+
+
+
+ A table must have at least one non-computed column defined.
+
+
+
+ The use of seed and increment values other than 1 is not supported with memory optimized tables.
+
+
+
+ The table has more than one edge constraint on it. This is only useful as a temporary state when modifying existing edge constraints, and should not be used in other cases.
+
+
+
+ Cannot use duplicate column names in primary key, column name: {0}
+ .
+ Parameters: 0 - columnName (string)
+
+
+ Memory-optimized table is not supported for this database.
+
+
+
+ There are multiple table definitions in the script, only the first table can be edited in the designer.
+
+
diff --git a/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.strings b/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.strings
index 247d4897..f25d24bb 100644
--- a/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.strings
+++ b/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.strings
@@ -2320,4 +2320,27 @@ TableColumnComputedFormulaDescription = Formula that the column uses if it is a
TableColumnIsComputedPersistedTitle = Is Persisted
TableColumnIsComputedPersistedDescription = Whether the computed column is saved with the data source
TableColumnIsComputedPersistedNullableTitle = Is Persisted Nullable
-TableColumnIsComputedPersistedNullableDescription = Whether the computed column can have a NULL value (NOT NULL can only be specified if the column is persisted)
\ No newline at end of file
+TableColumnIsComputedPersistedNullableDescription = Whether the computed column can have a NULL value (NOT NULL can only be specified if the column is persisted)
+IndexMustHaveColumnsRuleDescription(string indexName) = Index '{0}' does not have any columns associated with it.
+ForeignKeyMustHaveColumnsRuleDescription(string foreignKeyName) = Foreign key '{0}' does not have any columns specified.
+ColumnCanOnlyAppearOnceInIndexRuleDescription(string columnName, string indexName, int rowNumber) = Column with name '{0}' has already been added to the index '{1}'. Row number: {2}.
+ColumnCanOnlyAppearOnceInForeignKeyRuleDescription(string columnName, string foreignKeyName, int rowNumber) = Column with name '{0}' has already been added to the foreign key '{1}'. Row number: {2}.
+ColumnCanOnlyAppearOnceInForeignKeyRuleForeignColumnDescription(string columnName, string foreignKeyName, int rowNumber) = Foreign column with name '{0}' has already been added to the foreign key '{1}'. Row number: {2}.
+NoDuplicateConstraintNameRuleDescription(string constraintName, int rowNumber) = The name '{0}' is already used by another constraint. Row number: {1}.
+NoDuplicateColumnNameRuleDescription(string columnName, int rowNumber) = The name '{0}' is already used by another column. Row number: {1}.
+NoDuplicateIndexNameRuleDescription(string indexName, int rowNumber) = The name '{0}' is already used by another index. Row number: {1}.
+EdgeConstraintMustHaveClausesRuleDescription(string name) = Edge constraint '{0}' does not have any clauses specified.
+EdgeConstraintNoRepeatingClausesRuleDescription(string pair, int rowNumber) = The pair '{0}' is already defined by another clause in the edge constraint. Row number: {1}.
+MemoryOptimizedTableMustHaveNonClusteredPrimaryKeyRuleDescription = Memory-optimized table must have non-clustered primary key.
+TemporalTableMustHavePrimaryKeyRuleDescription = System versioned table must have primary key.
+TemporalTableMustHavePeriodColumnsRuleDescription = System versioned table must have the period columns defined.
+PeriodColumnsRuleMoreThanOneIssueDescription = Period columns (Generated Always As Row Start/End) can only be defined once.
+PeriodColumnsRuleNotMatchIssueDescription= Period columns (Generated Always As Row Start/End) must be defined as pair. If one is defined, the other must also be defined.
+ColumnsInPrimaryKeyCannotBeNullableRuleDescription = Columns in primary key cannot be nullable.
+OnlyDurableMemoryOptimizedTableCanBeSystemVersionedRuleDescription = Only durable (DURABILITY = SCHEMA_AND_DATA) memory-optimized tables can be system-versioned.
+TableMustHaveAtLeastOneColumnRuleDescription = A table must have at least one non-computed column defined.
+MemoryOptimizedTableIdentityColumnRuleDescription = The use of seed and increment values other than 1 is not supported with memory optimized tables.
+TableShouldAvoidHavingMultipleEdgeConstraintsRuleDescription = The table has more than one edge constraint on it. This is only useful as a temporary state when modifying existing edge constraints, and should not be used in other cases.
+ColumnCannotBeListedMoreThanOnceInPrimaryKeyRuleDescription(string columnName) = Cannot use duplicate column names in primary key, column name: {0}
+MemoryOptimizedCannotBeEnabledWhenNotSupportedRuleDescription = Memory-optimized table is not supported for this database.
+MutipleCreateTableStatementsInScriptRuleDescription = There are multiple table definitions in the script, only the first table can be edited in the designer.
\ No newline at end of file
diff --git a/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.xlf b/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.xlf
index cd6a3743..059f46ea 100644
--- a/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.xlf
+++ b/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.xlf
@@ -6068,6 +6068,132 @@ The Query Processor estimates that implementing the following index could improv
Formula
+
+ Index '{0}' does not have any columns associated with it.
+ Index '{0}' does not have any columns associated with it.
+ .
+ Parameters: 0 - indexName (string)
+
+
+ Foreign key '{0}' does not have any columns specified.
+ Foreign key '{0}' does not have any columns specified.
+ .
+ Parameters: 0 - foreignKeyName (string)
+
+
+ Column with name '{0}' has already been added to the index '{1}'. Row number: {2}.
+ Column with name '{0}' has already been added to the index '{1}'. Row number: {2}.
+ .
+ Parameters: 0 - columnName (string), 1 - indexName (string), 2 - rowNumber (int)
+
+
+ Column with name '{0}' has already been added to the foreign key '{1}'. Row number: {2}.
+ Column with name '{0}' has already been added to the foreign key '{1}'. Row number: {2}.
+ .
+ Parameters: 0 - columnName (string), 1 - foreignKeyName (string), 2 - rowNumber (int)
+
+
+ Foreign column with name '{0}' has already been added to the foreign key '{1}'. Row number: {2}.
+ Foreign column with name '{0}' has already been added to the foreign key '{1}'. Row number: {2}.
+ .
+ Parameters: 0 - columnName (string), 1 - foreignKeyName (string), 2 - rowNumber (int)
+
+
+ The name '{0}' is already used by another constraint. Row number: {1}.
+ The name '{0}' is already used by another constraint. Row number: {1}.
+ .
+ Parameters: 0 - constraintName (string), 1 - rowNumber (int)
+
+
+ The name '{0}' is already used by another column. Row number: {1}.
+ The name '{0}' is already used by another column. Row number: {1}.
+ .
+ Parameters: 0 - columnName (string), 1 - rowNumber (int)
+
+
+ The name '{0}' is already used by another index. Row number: {1}.
+ The name '{0}' is already used by another index. Row number: {1}.
+ .
+ Parameters: 0 - indexName (string), 1 - rowNumber (int)
+
+
+ Edge constraint '{0}' does not have any clauses specified.
+ Edge constraint '{0}' does not have any clauses specified.
+ .
+ Parameters: 0 - name (string)
+
+
+ The pair '{0}' is already defined by another clause in the edge constraint. Row number: {1}.
+ The pair '{0}' is already defined by another clause in the edge constraint. Row number: {1}.
+ .
+ Parameters: 0 - pair (string), 1 - rowNumber (int)
+
+
+ Memory-optimized table must have non-clustered primary key.
+ Memory-optimized table must have non-clustered primary key.
+
+
+
+ System versioned table must have primary key.
+ System versioned table must have primary key.
+
+
+
+ System versioned table must have the period columns defined.
+ System versioned table must have the period columns defined.
+
+
+
+ Period columns (Generated Always As Row Start/End) can only be defined once.
+ Period columns (Generated Always As Row Start/End) can only be defined once.
+
+
+
+ Period columns (Generated Always As Row Start/End) must be defined as pair. If one is defined, the other must also be defined.
+ Period columns (Generated Always As Row Start/End) must be defined as pair. If one is defined, the other must also be defined.
+
+
+
+ Columns in primary key cannot be nullable.
+ Columns in primary key cannot be nullable.
+
+
+
+ Only durable (DURABILITY = SCHEMA_AND_DATA) memory-optimized tables can be system-versioned.
+ Only durable (DURABILITY = SCHEMA_AND_DATA) memory-optimized tables can be system-versioned.
+
+
+
+ A table must have at least one non-computed column defined.
+ A table must have at least one non-computed column defined.
+
+
+
+ The use of seed and increment values other than 1 is not supported with memory optimized tables.
+ The use of seed and increment values other than 1 is not supported with memory optimized tables.
+
+
+
+ The table has more than one edge constraint on it. This is only useful as a temporary state when modifying existing edge constraints, and should not be used in other cases.
+ The table has more than one edge constraint on it. This is only useful as a temporary state when modifying existing edge constraints, and should not be used in other cases.
+
+
+
+ Cannot use duplicate column names in primary key, column name: {0}
+ Cannot use duplicate column names in primary key, column name: {0}
+ .
+ Parameters: 0 - columnName (string)
+
+
+ Memory-optimized table is not supported for this database.
+ Memory-optimized table is not supported for this database.
+
+
+
+ There are multiple table definitions in the script, only the first table can be edited in the designer.
+ There are multiple table definitions in the script, only the first table can be edited in the designer.
+
+