Comparing Data Dictionaries

In situations where the schema has been modified to meet a site's particular needs, the database manager may need to compare the data dictionaries between different projects or between a project and a standard schema.

Comparing data dictionaries is useful:

When comparing data dictionaries,the results will be displayed much the same as they would if you were performing a data dictionary transfer in. The difference is that there are no recommended actions and no buttons to perform actions.

Comparing a Project Data Dictionary to a Standard Data Dictionary

Follow this procedure to compare the data dictionaries of the standard HQ project and another project.

  1. Log into a project such as HQ that has an unmodified data dictionary.
  2. Run the Database Update Wizard as follows to create the export files afm_tbls.csv and afm_flds.csv for a standard schema.
  3. Sign out of the HQ project.
  4. Sign into the project you want to compare to the standard HQ schema.
  5. Run the Database Update Wizard as follows:

Comparing the Data Dictionaries of Two Projects

  1. Sign into a Project A.
  2. Run the Database Update Wizard as follows to create afm_tbls.csv and afm_flds.csv files for the Project A schema.
  3. Sign out of Project A.
  4. Sign into Project B.
  5. Run the Database Update Wizard as follows:

Controlling the Comparisons

When you compare the data dictionaries, you can control the data that is compared.

Fields to Show

These options hide the common changes so that you can concentrate on the unique conditions and errors. Choose the changes that you don't want the system to show in the Per-field Dictionary Changes panel.

Per-field Dictionary Changes

Each row represents one type of change to one ARCHIBUS Field entry. For instance, if a field differs in both Data Type and Multi-line Heading, these changes would show as different rows. The exception is new fields, which are represented by a single row.

The Per-field Dictionary Changes panel presents the following columns:

The grid shows the project value -- the definition as it exists in the current data dictionary of the project you are logged into -- and the corresponding definition in the extract file (afm_tbls.csv). These are the differences that will be implemented when you select one of the panel actions.

Specifically, the compare function during a data dictionary merge checks for differences listed below. The type of difference would be shown in the column "Field Differs In"

Additionally the compare checks for:

These are the differences that would be implemented if you run the Schema Change Wizard. (There is no need to ever compare the extract file to the SQL database tables – you will always read the extract files into the afm_flds and afm_tbls tables before running the Schema Change Wizard.)

Specifically, the compare function during a data dictionary merge checks for these types of differences which are shown in the "Fields Differ In" column.

If you need to produce a results data set that can be manipulated (such as searched or sorted) or included in a report, you can create a view of the afm_flds_trans table in Smart Client.

See Also

Comparing Data: Overview

Copyright © 1984-2014, ARCHIBUS, Inc. All rights reserved.