mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 01:25:37 -05:00
[SQLDB-Migration] Collation Validation (#21572)
Adding collation validation in target database selection page. collecting source database info including state, size, collation etc in the step 1 (select databases to assess and migrate) comparing source database collation and target database collation in target selection page. image
This commit is contained in:
@@ -410,6 +410,23 @@ export function SQL_TARGET_CONNECTION_SOURCE_NOT_MAPPED(sourceDatabaseName: stri
|
||||
sourceDatabaseName);
|
||||
}
|
||||
|
||||
//`Database mapping error. Source database ({0}) collation ({1}) does not match target database ({2}) collation ({3}). Please select a target database with the same collation to the source database.`
|
||||
export function SQL_TARGET_SOURCE_COLLATION_NOT_SAME(
|
||||
sourceDatabaseName: string,
|
||||
targetDatabaseName: string,
|
||||
sourceDatabaseCollation: string | undefined,
|
||||
targetDatabaseCollation: string | undefined): string {
|
||||
return localize(
|
||||
'sql.migration.wizard.target.source.collation.error',
|
||||
"A mapping error was found between '{0}' and '{1}' databases. The source database collation '{2}' does not match the target database collation '{3}'. Please select or re-create a target database with the same collation as the source database.",
|
||||
sourceDatabaseName,
|
||||
targetDatabaseName,
|
||||
sourceDatabaseCollation,
|
||||
targetDatabaseCollation);
|
||||
}
|
||||
|
||||
export const SQL_MIGRATION_TROUBLESHOOTING_LINK = localize('sql.migration.wizard.troubleshooting', 'Learn more: https://aka.ms/dms-migrations-troubleshooting.');
|
||||
|
||||
// Managed Instance
|
||||
export const AZURE_SQL_DATABASE_MANAGED_INSTANCE = localize('sql.migration.azure.sql.database.managed.instance', "Azure SQL Managed Instance");
|
||||
export const NO_MANAGED_INSTANCE_FOUND = localize('sql.migration.no.managedInstance.found', "No managed instances found.");
|
||||
|
||||
Reference in New Issue
Block a user