This dialog is opened to confirm and customize batch data merge/delete action from the Batch data diff tab:
Once the confirmation is OK, the next step is typically script generation and the Execute script dialog (see below for exclusions related to Id-Remap and 'Update changed only' scenarios).
The dialog contains the following sections.
Data merge and deletion does not make any backup, please make sure that you've done it yourself if needed.The next warning is shown only if we are going to process tables with changed column definitions:
Target database:
{Database display name}
Some of selected tables have 'Changed columns'=Yes, this means that:The next warning is displayed if there are any tables that cannot be merged due to missing or changed key definitions:
- source table may have columns that are not going to be merged,
- some column data types can be changed, data can be truncated or not merged at all.
Your selection also contains one or more views or tables without common key - they are not going to be processed.
Some of selected tables have AUTOINCREMENT primary keys and the database contains other tables referencing these primary key values by foreign keys.If Id-Remap Merge can be applied, this text is followed by the option to enable it:
☐ Use Id-Remap MergeIn this case, the next step in our merge execution flow will be the Id-Remap Merge dialog to set up additional configuration for Id-Remap Merge.
This expander control includes only errors related to the current merge operation. You can find more information about table dependency levels on the appropriate help page, and more information about why it is necessary for Id-Remap in the Id-Remap Merge dialog help page.
Please specify which rows should be {merged to or deleted in} the target database:
○ New ○ Changed ○ New and changed ○ All
If we are performing a regular merge (neither a deletion nor an Id-Remap Merge), then we may have additional options for script generation.
New and 'New and Changed' options provide an additional option for AUTOINCREMENT column values:
Some of selected tables have AUTOINCREMENT primary keys. If the following option is disabled, DB engine will generate new values which most likely will be different
☐ Import existing AUTOINCREMENT values on INSERT
Changed and 'New and Changed' options provide an additional option to update only changed values:
If the generated script will contain UPDATE statements, it can include all or only changed column values. In the last case, script will not be generated for unchanged rows.
☐ Update only changed columns
In the case of a non-Id-Remap merge with a 'New and Changed' filter, the dialog also suggests generating DELETE script items to ensure that the target rows match the source rows exactly:
It seems that you want to merge all changes to the target db. By default this option inserts missing rows and updates changed rows. However the target table may contain rows which are missing in the source and this will keep the set of rows different even after completion of merge. You can eliminate these changes in two ways: 1) after completion of Merge action run Delete action on the target db, or 2) select the option below:
☐ Delete new rows in the target database
Wrap table data operations in a transaction. Can also provide better performance.If enabled, the generated script is wrapped with BEGIN TRANSACTION and COMMIT statements.
☐ With transaction