When you are evaluating the changes that have been made to a data model, you may want to compare it with the existing version to see the differences. For example, you may want to see how many fields have been added to the new schema to determine whether or not an update is necessary.
The Data Comparison tool allows you to compare an existing database to an updated version of the data model. Using this tool, you can track the differences between various aspects of the database including the schema, geometry, attributes, and spatial reference. You can also choose to compare the databases based on all these aspects or a specific one. The particular items that are compared for each comparison type are displayed in the table below.
Comparison type | What is compared |
---|---|
ALL |
|
ATTRIBUTES_ONLY |
|
GEOMETRY_ONLY |
|
SCHEMA_ONLY |
|
SPATIAL_REFERENCE_ONLY |
|
- Start ArcCatalog.
- On the main menu, click Customize > Toolbars > Defense Mapping.
- On the Defense Mapping toolbar, click Defense Mapping > Data Comparison.
The Data Comparison dialog box appears.
- Click the ellipsis (...) next to the Select Template Geodatabase text box.
The Select base geodatabase as template dialog box appears.
- Navigate to the database that contains the version of the schema you want to compare.
- Click Select.
The Data Comparison dialog box appears.
- Click the ellipsis (...) next to the Select Geodatabase to Compare text box.
The Select test geodatabase to compare dialog box appears.
- Navigate to the geodatabase whose schema you want to compare.
- Click Select.
The Data Comparison dialog box appears.
- Click the ellipsis (...) next to the Select Location For Compare Report text box.
The Save As dialog box appears.
- Navigate to the directory in which you want to save the comparison report.
- Type a name for the file in the File name text box.
- Click Save.
The Data Comparison dialog box appears.
- To change the types of items compared between the two databases, click the Compare Type drop-down arrow and choose a different option.
By default, all aspects of the database are compared.
- To ignore all m-related information in the databases, check the IGNORE M check box.
- To ignore all z-related information in the databases, check the IGNORE Z check box.
- To ignore all point ID attributes in the databases, check the IGNORE POINTID check box.
- To ignore all extension property attributes in the databases, check the IGNORE EXTENSION PROPERTIES check box.
- To stop database comparison when a difference is found, uncheck the Continue comparison check box.
By default, the check box is checked.
- To only report differences between the two databases, check the Report only errors check box.
By default, the check box is not checked.
- Click Apply.
Once the comparison process is complete, the Data Comparison report generated dialog box appears.
- Click Yes to view the results.
The report appears in a text editor such as Notepad.