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.

命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

语法

声明
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

备注

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.

仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。

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

线程安全

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.

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

DdlTriggerBase Members
Microsoft.SqlServer.Management.Smo Namespace

其他资源

DDL 触发器
CREATE TRIGGER (Transact-SQL)