Previous Topic: Refine the Criteria for Object Comparison in the Right ModelNext Topic: Search the Resolve Differences Dialog


Select Advanced Options to Refine the Compare Criteria

Use the options in the Complete Compare - Advanced Options Selection pane to select the generic compare criteria. The criteria that you select here apply to all the objects that you have selected so far. The options that you select here determine how you want to compare.

Follow these steps:

  1. Click the Advanced Options link in the navigation pane and choose from the following options:
    Auto dispose Database/Script Models

    Closes the model that is created from the database or script, automatically when you end the compare session. The option to save the model is not displayed.

    Auto resolve missing UDPs

    Copies the missing UDPs to the target model, when all the differences are due to missing UDPs. Complete Compare detects missing UDPs or property differences for common UDPs and displays the Type Resolution dialog before the Complete Compare session. Select this check box to skip the Type Resolution dialog when all the differences are due to missing UDPs.

    Case Sensitive Compare

    Performs a case-sensitive compare. This option affects both the alignment of objects in the object tree and the equality of property values in the property pane. When the option is cleared, case is ignored for the purposes of alignment and equality testing of text property values.

    Exclude Unaligned Objects in the Left Model

    Excludes unaligned model-level objects from the left model in the Resolve Differences dialog. Use this option as a filter to distinguish between changes in a model subset and a larger model of which the subset is a part.

    Exclude Unaligned Objects in the Right Model

    Excludes unaligned model-level objects from the right model in the Resolve Differences dialog. Use this option as a filter to distinguish between changes in a model subset and a larger model of which the subset is a part.

    Note: You can select both, Exclude Unaligned Objects in the Left Model and Exclude Unaligned Objects in the Right model to compare only the objects that are present in both the models.

    Ignore Code Comments

    Excludes blocks of comments from the body of a trigger, before including it in the compare process. If the only difference is in the comments, excluding comments enables Complete Compare to recognize that a trigger has not changed.

    Include Only Generated Objects

    Includes objects for which the Generate check box in the property editor is selected. The Generate check box specifies whether you want to generate SQL for the object during forward engineering.

    Prefix Owner

    Matches by prefix table owner. When you select this option, objects are aligned based on both the name and owner name property.

    Select Active Subject Area

    Specifies that you want to select the active subject area by default in the Object Selection pane. Selecting a subject area by default simplifies the selection, especially in models that contain many subject areas.

    Tablespace in Database

    Aligns objects according to both, the IN_TABLESPACE and IN_DATABASE properties, where applicable. This option is available only for the DB2 z/OS database server.

    Using Database Id Matching

    Matches by Database ID. This option is available for Informix, SAP ASE, and SQL Server database servers only. If the DB ID property is present, objects are aligned based on the property. Database IDs are present only in models that are reverse-engineered from a database. Select this property to compare a model with the same model that is reverse-engineered from a database.

    Using Name Matching

    Matches by object name. Relationship, index, and index members are aligned based on the name, in addition to the normal criteria used to align these objects. Use this property if the models that are being compared have the same named objects with different owners. In this case, you can compare to see if the two models are similar other than the owner or schema name.

    Using Object Id Matching

    Aligns objects that are based on the Object ID property, where applicable. This option is available for the DB2 z/OS database server only.

  2. Click Compare to begin the compare process.

    The options are saved and the compare process begins.

Back to Top

Compare and Resolve Differences

Compare the model in the left pane with the model in the right pane. View the differences at the object level, or more detailed property level. To resolve differences, move an object from one pane to the other. When you move objects, open models are updated in real time. After you finish resolving differences, generate ALTER scripts for any or both the models.

The following figure illustrates the model level comparison of Org and Org_New models:

Illustrating the model level comparison of objects and properties

The previous figure indicates that the author, model name, and target database are the same for both, Org and Org_New models. However, Org has the default theme and Org_New has the theme R1.

The following figure illustrates the Entity level comparison of Org and Org_New models:

Illustrating the entity level comparison of objects and properties

The previous figure indicates that the attribute order does not match. The Org_New model has an additional attribute named Emp_Designation.

To view the comparison details of an attribute, expand an entity and select an attribute. The properties are displayed in the Property View pane.

The following figure illustrates the Attribute level comparison of Org and Org_New models:

Illustrating the attribute level comparison of objects and properties

The Property View section in the previous figure indicates that the logical data type for the Dept_ID field does not match.

The following figure illustrates the Table level comparison of Org and Org_New models:

Illustrating the table level comparison of objects and properties

The previous figure indicates that the schemas and the columns are different in the Employee table. In addition, the Column Order and Database Column Order are different in the Org_New model. Column Order indicates the order of columns that appear in the model and Database Column Order indicates the order of creating the columns.

The following figure illustrates the Column level comparison of Org and Org_New models:

Illustrating the column level comparison of objects and properties

Follow these steps:

Notes:

To generate a comparison report, use the following steps:

  1. In the Resolve Differences dialog, click the Show Report icon.

    The Report dialog opens.

  2. Choose the format in which to display the report and then click OK.

    Your report is generated and displayed in the chosen format.

To explain the differences, use the following steps:

  1. Right-click a difference either in the Object View or in the Property View and click Explain to open the Explanation dialog.
  2. [Optional] Click the Show Selected Item - Do not track the item check box to display a selected row without tracking the cursor movement.

Back to Top