Type Property (Trigger) (SQL-DMO)

The Type property exposes configured attributes of the referenced Microsoft® SQL Server™ component.

Applies To

Trigger Object

Syntax

object.Type

Part Description
object Expression that evaluates to an object in the Applies To list

Returns

For a Trigger object, interpret the Type property using these values.

Constant Value Description
SQLDMOTrig_All 7 Fired by any data modification statement
SQLDMOTrig_Delete 4 Fired by a DELETE statement
SQLDMOTrig_Insert 1 Fired by an INSERT statement
SQLDMOTrig_Unknown 0 Bad or invalid value
SQLDMOTrig_Update 2 Fired by an UPDATE statement

Remarks

A SQL Server trigger can fire when a Transact-SQL INSERT, UPDATE, or DELETE statement modifies data in the table on which the trigger is defined.

The Transact-SQL script defining the trigger determines the Transact-SQL statements causing firing. For more information, see Text Property.

Data Type

Long, enumerated

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetType(SQLDMO_TRIGGER_TYPE* pRetVal)

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.