Export (0) Print
Expand All

ServerDdlTrigger Class

The ServerDdlTrigger object represents a Microsoft SQL Server data definition language (DDL) trigger.

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

public sealed class ServerDdlTrigger : DdlTriggerBase
public final class ServerDdlTrigger extends DdlTriggerBase
public final class ServerDdlTrigger extends DdlTriggerBase

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.

To get ServerDdlTrigger object properties, users can be a member of the public fixed server role.

To set ServerDdlTrigger object properties, users must have CONTROL SERVER permission on the server or be a member of the sysadmin fixed server role.

To create or drop a server-level DDL trigger, users must have CONTROL SERVER permission on the server or be a member of the sysadmin fixed server role.


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.

Development Platforms

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

Target Platforms

Release

History

New content:
  • The ExecutionContext property has been added to the ServerDdlTrigger class.

  • The ExecutionContextLogin property has been added to the ServerDdlTrigger class.

Community Additions

ADD
Show:
© 2014 Microsoft