Change Schema Generation Options (Forward Engineering)

At any time, you can change the schema generation options and can generate the correct SQL statements.

Follow these steps:

  1. Click Create Subject Area in the physical model and select the subject area for which you want to generate the schema.
  2. Click Forward Engineer, Schema on the Actions menu.
  3. Select an option set from the Option Set list.
  4. Go to the Summary tab.
  5. Click Edit Options.

    The schema generation options are displayed.

  6. Select or clear the available options from the Options list.

    The options you have selected are used to generate the schema.

Generate the Schema (Forward Engineering)

When you generate the schema, you can connect to the target server and can generate the schema. When you generate a script, you can save it as a text file or can load it into a utility that interprets SQL scripts.

Follow these steps:

  1. After you select the schema generation options, choose any of the following options:
    • To view the generated script, click Preview.
    • To save the script, click Report.
    • To filter the number of tables for which you want to generate the schema, click Filter.
    • To print a copy of the script, click Print.
  2. Click Generate to open the <Database> Connection dialog and log on to the target server.

    The SQL queries in the schema are executed in the database.

  3. Choose one of the following options in the Generate Database Schema dialog:
    Save Data

    Saves the message log to a file.

    Print

    Prints the message log.

    Find

    Searches the message log.

  4. Click OK.

You have generated the schema for the eMovies model and included tables, columns, indexes, and referential integrities.