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.
Follow this procedure to compare the data dictionaries of the standard HQ project and another project.
afm_tbls.csv
and afm_flds.csv
for a standard schema.afm_tbls.csv
and afm_flds.csv
files for the Project A schema.When you compare the data dictionaries, you can control the data that is compared.
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.
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 ARCHIBUS Data Dictionary (this project’s ARCHIBUS Fields table, afm_flds)
- the extract file (the afm_flds.csv file extracted from the prototypical database).
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"
- Data Type
- Size
- Decimals
- Allow NULL
- Primary Key
- Validating Table
- Fields to Validate
- ARCHIBUS Type
- String Format
- Default Value
- Numeric Format
- Enumeration List
Additionally the compare checks for:
- Missing Table- If an entire table is missing, the system does not list the individual fields of this table as missing, but simply lists the table.
- Missing Field in Project - If the field exists in the project database but not in the extract.
- Missing Field in Database - If the field exists in the extract but not in the project database.
- Default Value - if the Default Value does not exist in the extract.
- Enumerations - If the database uses values not in extract’s list of enumerated values. For example, consider a field in the extract file with enumeration list values of "Open" and "Closed". A project database containing a record with the value "Canceled" would cause this difference to be reported. It is likely that you will also have a difference reported for Enumeration List because the project definition for the field probably includes the enumeration value "Canceled".
- Circular References - A circular reference is a field that refers to a table that ultimately refers back to the current field. This sometimes occurs with improperly specified validating tables.
- the ARCHIBUS Data Dictionary (this project’s ARCHIBUS Fields table as it exists at this instant)
- the SQL database tables (the structure of the table as currently defined in the physical database)
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.
- Data Type
- Data Size
- Allow NULL
- Primary Keys
- Foreign Keys
- Default Value
- A change to an auto-numbered default
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
Copyright © 1984-2014, ARCHIBUS, Inc. All rights reserved. |