Comparing Changes using Complete Compare
You can compare your model with database, script, or another local model to check for differences using the Complete Compare wizard. Based on the results, you can then resolve or merge differences. Thus, maintaining a consistent model and database.
This topic walks you through the steps to compare a Parquet model with script.
To compare models with script:
-
Open your Parquet model.
Ensure that you are in the Physical mode.
For example, the following image uses a Parquet model with four records.
-
Click Actions > Complete Compare.
By default, the Complete Compare wizard assigns the open model as the Left Model. Hence, the Right Model tab appears. -
Click Database/Script.
By default, the Allow Demand Loading option is selected. -
Click Load.
The New Model dialog box appears. This starts the reverse engineering process to pull a model from the script to compare. -
Ensure that the Database is set to Parquet. Then, click Next.
The Reverse Engineer Process Wizard appears. -
Click Script File. Then, browse and select a script file.
-
Click OK.
The reverse engineering process starts. Once the process is complete, the Right Model is set to the one that you reverse engineered. -
Click Next and on the Type Selection tab, select the appropriate options.
For example, the following image shows the default options.
-
Click Next and on the Left Object Selection tab, select the appropriate options.
For example, the following image shows the default options.
-
Click Next and on the Right Object Selection tab, select the appropriate options.
For example, the following image shows the default options.
-
Click Compare.
The comparison process runs, and the Resolve Differences dialog box appears. It displays the differences between your model and script.
For example, the following image shows that the AdventureWorks record is available in your model but not in the script.
Select the AdventureWorks record and click. This will move the AdventureWorks record to the right model. Similarly, resolve other differences.
-
As differences were moved to the right model, click
.
This opens the Forward Engineering Alter Script Schema Generation Wizard. -
Click Record Filter and select or verify the records to be included on the forward engineering script.
-
Click Preview to view and verify the alter script.
-
Click Generate.
The forward engineering process starts. The script generates your physical database schema. You can verify the newly generated schema and save it. -
Click OK. Then click Finish.
This closes the Resolve Differences dialog box and displays the Complete Compare wizard. -
Click Close.
Copyright © 2023 Quest Software, Inc. |