Skip to content

Do the reverse engineering from a data source

In this section, you can find how to do reverse engineer from a data source to create a technical model. Reverse engineering is the process of reconstructing a physical and/or Entity Relationship (ER) model from an existing data source. The purpose of reverse engineering is to avoid manual work as much as possible. It is important that the technical interface with which the data provided delivers the data is in accordance with the technical specification.

Before you begin, make sure that you have an active connection to the source database that you want to do the reverse engineer.

To do the reverse engineer:

  1. In the empty technical model, select Database > Update Model from Database.
    Update model from database
  2. The Database Reverse Engineering Options dialog box appears. Select Using a data source. If the data source is correct, go to step 7. If it is not correct, go to step 3.
    Database Reverse Engineering Options
  3. If the data source is not correct, you click on the Connect to data source icon.
  4. In the Connect to a Data Source dialog box, click on Configure.
    Connect to a data source
  5. In the Configure Data Connections dialog box, put a check next to the data source you want to connect with. Click on OK.
    Configure data connections
  6. In the Connect to a Data Source dialog box, click on Connect.
  7. In the Database Reverse Engineering Options dialog box, click on OK.
    Database Reverse Engineering Options
  8. The Database Reverse Engineering dialog box appears. This dialog box allows you to specify which objects you want to reverse engineer. Select the relevant tables. Make sure you deselect: Indexes, Checks, and Physical options. Click OK to begin reverse engineering
    Database Reverse Engineering
  9. The Merge Models dialog box appears. This dialog box allows you to control the merging of the new objects into your existing model. Make sure you uncheck Model Options. Carefully validate if other options must be unchecked as well.
    Merge models
  10. You see the physical diagram of the tables selected for re-engineering.

To make sure your model is complete, you have to do some post-processing activities.

Check naming conventions

Make sure to check if the uppercase/lowercase of the names and the codes in PowerDesigner matches the source system. It is a known bug in PowerDesigner when re-engineering models from databases.

To change to uppercase or lowercase:

  • Select Tools > Model Options > Naming conventions > Other objects.

Assign a schema

Make sure the schema is filled. It is a known bug in PowerDesigner that this data gets lost in some cases. You can even “mass change” data of tables in your models.

Info

In PowerDesigner a schema is sometimes called owner.

To complete the information about the schema:

  1. Select Model > Tables.
  2. Select all tables (click on top of the left corner).
  3. Click in the column Owner.
  4. Click on the drop-down menu and set the appropriate owner.
    List of tables
  5. Click on OK.

{insert} Set a default filegroup

Now you have completed the initial set-up of your technical model.