Product Home
DTM Data Comparer Online Documentation Prev Page Prev Page
General
Product profile
Connect
Quick Start
Direct Connection
Connect to Desktop File
Data Sources
DSN File
OLE DB Connection
Connection Profile
Connection Information
Troubleshooting Guide
Comparison
Synchronization
Table to Table Mode
Synchronous Navigation
Face-to-Face View
Database Mode
Key Definition
Column Mapping
Settings
General Settings
User Interface
Comparison Settings
Synchronization Settings
Report Settings
Project Properties
Script Viewer
Command Line
Console Mode
Process Cancellation
Comparison Report
Collate Window
Run SQL statement
SQL Console
Hot Keys
Information
Limitations
Support
License
Demo and Full versions
Install
How to buy
Upgrade
Uninstall
Products
Trademark Information
Glossary

Mapping

Q: How to compare tables with different structure?
A: Mapping allows comparing two tables that have different structure (number and name of fields).

You should select fields of primary and secondary table in the dialog box and click "Map column". To delete column association you don't need, you should select them in the mapping list and click "Unmap". Using control or shift keyboard buttons you can select and remove a few associations at once. "Clear Map" removes all column maps.

"Automatically" map feature creates mapping for columns with same name automatically.

The map constant value feature allows the user to fill secondary table by predefined value during synchronization or to compare secondary column with constant value. In this case the program compares secondary value with predefined constant instead of column's value from the primary table. Please enter constant value, select secondary column name and press "map constant" button to create this type of map. It is important to quote entered value if necessary (strings, dates, etc). For NULL value you should use <NULL> string.

DTM Data Comparer: Columns mapping dialog

Conversion Feature

The program allows the user to apply built-in database function of the target database for some columns. It is most useful for custom format conversion like date, time, etc.
To apply conversion function please:

  • Select source and target fields
  • Enter conversion expression into "Conversion" field. You should use '%s' instead of actual field value, for example: CAST(%s AS decimal(10,5))
  • Click "Map column" button.

Notes:

  • The program shows mapping button pressed if mapping specified for current pair of tables:
  • The mapped columns are marked by green icon when not mapped by red.
  • You may map a column more than once for complex table to table relationships.