Define SQL Server Table Triggers
Use the SQL Server Table Trigger Editor to define the stored procedures that exist for a table in a SQL Server 2008, 2012, 2014 or 2016 physical model.
To define SQL Server table triggers
The SQL Server Table Trigger Editor opens.
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.
Displays the table trigger name. You can change the trigger name in this field.
Specifies the schema for the table trigger. Select a schema from the drop-down list or click the New icon to open the SQL Server Schema Editor and create one.
Specifies to execute the table trigger on INSERT.
Specifies to execute the table trigger on UPDATE.
Specifies to execute the table trigger on DELETE.
Specifies when the table trigger is executed.
Generates SQL during forward engineering. Clear the check box if you do not want to generate SQL.
Specifies the code type of the trigger and its associated values. Select one of the following code types from the drop-down list:
Specifies to use SQL code.
Specifies to use Common Language Runtime code defined in an assembly.
Specifies to use triggers that are compiled to native code that access memory-optimized tables. Native compilation is available SQL Server 2016 onward.
Specifies that the table trigger is encrypted in the database.
Specifies that the table trigger is not invoked as part of database replication.
Specifies that the tables that are referenced by a trigger cannot be dropped or altered.
This option is required for triggers on memory-optimized tables and is not supported for triggers on traditional tables. Available SQL Server 2016 onward.
Specifies whether the table trigger is enabled or disabled.
Specifies the permission level in effect when the table trigger is executed.
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.
Displays the relationships and tables associated with the table trigger.
The table trigger is defined and the SQL Server Table Trigger Editor closes.
Copyright © 2017 erwin Inc.
All rights reserved.
|
|