Set Default Referential Integrity Rules
Use the grid in the RI Defaults tab of the Model Editor to specify default referential integrity rules for relationships in your model.
Follow these steps:
- Click Model, Model Properties.
The Model Editor opens.
- Click the RI Defaults tab and work with the following options:
Rebind referential integrity settings on all relationships
Applies the new default settings to any existing relationship in the model. If you change the default settings in an existing model, use this button to implement the new settings in the model for all existing relationships. If the new settings are saved, but not rebound, the defaults affect the new relationships only.
Reset all Referential Integrity default settings to their original values
Clears your settings and returns to the system defaults.
- Automatically Create RI Triggers
Specifies whether you want to create triggers for the referential integrity defaults automatically.
- Action
Lists a SQL action in each of its rows. For each SQL action, select the default RI action for each of the following relationship type columns:
- Identifying
Lets you specify the RI setting for each of the SQL actions in the Action column. This setting applies to all identifying relationships in the model.
- Non-identifying, Nulls Allowed
Lets you specify the RI setting for each of the SQL actions in the Action column. This setting applies to all non-identifying relationships in the model for which nulls are allowed.
- Non-identifying, No Nulls
Lets you specify the RI setting for each SQL action in the Action column. The setting applies to all non-identifying relationships in the model for which nulls are not allowed.
- Subtype
Lets you specify the RI setting for each of the SQL actions in the Action column. This setting applies to all subtype relationships in the model.
Some target databases, such as Oracle, use a different terminology for RI trigger actions. Use the RI setting appropriate for your target database. For NONE and NO ACTION, use of NONE means no restrictions (no RI trigger is created). NO ACTION is identical to RESTRICT. In other words, the actions are allowed only if the conditions are met.
- Click Close.
Default referential integrity rules are set and the Model Editor closes.
Copyright © 2023 Quest Software, Inc. |