DdlTriggerBase Class

The DdlTriggerBase is a base class that is inherited by the DatabaseDdlTrigger object, which represents a Microsoft SQL Server database data definition language (DDL) trigger.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
Public Class DdlTriggerBase
    Inherits ScriptNameObjectBase
    Implements ICreatable, IAlterable, IDroppable, IScriptable, _
    ITextObject
public class DdlTriggerBase : ScriptNameObjectBase, ICreatable, IAlterable, IDroppable, 
    IScriptable, ITextObject
public ref class DdlTriggerBase : public ScriptNameObjectBase, ICreatable, IAlterable, IDroppable, 
    IScriptable, ITextObject
public class DdlTriggerBase extends ScriptNameObjectBase implements ICreatable, IAlterable, 
    IDroppable, IScriptable, ITextObject
public class DdlTriggerBase extends ScriptNameObjectBase implements ICreatable, IAlterable, 
    IDroppable, IScriptable, ITextObject

Remarks

DDL triggers run a Transact-SQL or user-defined function in response to certain DDL events.

SQL Server Management Objects (SMO) provides programmatic access to allow management of all DDL trigger functionality with the DatabaseDdlTrigger object and the ServerDdlTrigger object.

Database DDL triggers respond to events within the scope of the database and server DDL triggers respond to events within the scope of the SQL Server instance.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Inheritance Hierarchy

System.Object
   Microsoft.SqlServer.Management.Smo.SmoObjectBase
     Microsoft.SqlServer.Management.Smo.SqlSmoObject
       Microsoft.SqlServer.Management.Smo.NamedSmoObject
         Microsoft.SqlServer.Management.Smo.ScriptNameObjectBase
          Microsoft.SqlServer.Management.Smo.DdlTriggerBase
             Microsoft.SqlServer.Management.Smo.DatabaseDdlTrigger
             Microsoft.SqlServer.Management.Smo.ServerDdlTrigger

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

DdlTriggerBase Members
Microsoft.SqlServer.Management.Smo Namespace

Other Resources

DDL Triggers
CREATE TRIGGER (Transact-SQL)