Define SQL Azure Table Triggers
Use the SQL Azure Table Trigger Editor to define the triggers that exist for a table in a SQL Azure physical model.
To define SQL Azure table triggers
- Right-click a table trigger in the Model Explorer and click Properties.
The SQL Azure Table Trigger Editor opens.
- Select the table from the Table drop-down that contains the table trigger that you want to define.
- Select the table trigger in the Navigation Grid that you want to define and work with the following options:
Note: Click New
on the toolbar to create a new table trigger. Use the Enter filter text box to filter a very large list of table triggers to quickly locate the one that you want to define.
- Name
Displays the table trigger name. You can change the trigger name in this field.
- Schema
Specifies the schema for the table trigger. Select a schema from the drop-down list or click the New icon to open the SQL Azure Schema Editor and create one.
- Insert
Specifies to execute the table trigger on INSERT.
- Update
Specifies to execute the table trigger on UPDATE.
- Delete
Specifies to execute the table trigger on DELETE.
- Trigger Timing
Specifies when the table trigger is executed.
- Generate
Generates SQL during forward engineering. Clear the check box if you do not want to generate SQL.
- Click the General tab and work with the following options:
- Enabled State
Specifies whether the table trigger is enabled or disabled.
- Type
Specifies the permission level in effect when the table trigger is executed.
- Select User
Specifies the user whose permissions are in effect for the execution of the table trigger.
Note: This option is only available if you have selected the Execute As User option in the Type drop-down list.
- Referential Integrity Constraints
Displays the relationships and tables associated with the table trigger.
- Click the Code tab to define the code type for the table trigger.
- Click the Expanded tab to view expanded code for the table trigger.
- (Optional) Click the Comment tab and enter any comments that you want to associate with the object.
- (Optional) Click the UDP tab to work with user-defined properties for the object.
- (Optional) Click the Notes tab to view and edit user notes.
- Click Close.
The table trigger is defined and the SQL Azure Table Trigger Editor closes.
Copyright © 2020 erwin, Inc.
All rights reserved.
|
|