Forward Engineering Project Models

You can generate forward engineering schema scripts and alter scripts for all or selected physical models of a project using the Project Explorer. You can also preview scripts and save them to a location in your project.

The required model must be loaded to be available in the forward engineering list.

To forward engineer project models, follow these steps:

  1. In the Project Explorer, do one of the following:
    • To generate schema scripts, click Schema Script . Alternatively, right-click the project and click Forward EngineerSchema Script.
    • To generate alter scripts , click Alter Script . Alternatively, right-click the project and click Forward EngineerAlter Script.

    Depending on your selection, the Forward Engineer or Alter Script window appears.

    The window provides a list of models in the project and their details such as model name, type, parent, database, file name, and path.

  2. Filter the required models in the list using the following options:
    • Database: Use this filter to select all or database-specific models. For example, to select all SQL Server models, select SQL Server in the drop-down list.
    • Model Name: Use this filter to select models based on name. For example, to select all models with "Target" in their name, enter Target.
    • Parent Filter: Use this filter to select models based on parent model or folder. For example, to select all target models of the parent model "SourceModel1," select SourceModel1 in the drop-down list.
  3. Click Refresh.
  4. The list displays the filtered models.

  5. Select the required models for forward engineering.
  6. Optionally, preview the script before generation using Preview button. You cannot select multiple models for preview.

  7. Click OK.

Scripts are generated and saved to the Forward Engineering Script folder in your local project folder.