System.Data 2.0.0.0 System.Attribute System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)

See "CLR Triggers" in SQL Server 2005 Books Online for more information on CLR triggers and examples.

Used to mark a method definition in an assembly as a trigger in SQL Server. The properties on the attribute reflect the physical attributes used when the type is registered with SQL Server. This class cannot be inherited.

- Constructor

  The following example specifies that the trigger is activated by updating existing data (UPDATE) in the table authors.

  An attribute on a method definition in an assembly, used to mark the method as a trigger in SQL Server.

  2.0.0.0
- Property
  System.String To be added.

  The DML action that activates the trigger could be an UPDATE, a DELETE, or an INSERT action. The type of the trigger can be AFTER or INSTEAD OF. Specifying FOR for the trigger type is the same as specifying AFTER.

  The property is required.

  The type of trigger and what data manipulation language (DML) action activates the trigger.

  2.0.0.0
- Property
  System.String To be added. To be added.

  The name of the trigger.

  2.0.0.0
- Property
  System.String To be added.

  The property is required.

  The following example specifies that the trigger is referenced by using the name trig_onpubinsert. The trigger is activated by adding new data (INSERT) to the table publishers.

  The table to which the trigger applies.

  2.0.0.0