ServerDdlTrigger Class
The ServerDdlTrigger object represents a Microsoft SQL Server data definition language (DDL) trigger.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintaxis
'Declaración
Public NotInheritable Class ServerDdlTrigger
Inherits DdlTriggerBase
public sealed class ServerDdlTrigger : DdlTriggerBase
public ref class ServerDdlTrigger sealed : public DdlTriggerBase
public final class ServerDdlTrigger extends DdlTriggerBase
public final class ServerDdlTrigger extends DdlTriggerBase
Notas
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.
Este espacio de nombres, clase o miembro solamente se admite en la versión 2.0 de 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.
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.ServerDdlTrigger
Ejemplo
How to: Create, Alter, and Remove a Trigger in Visual Basic .NET
Seguridad para subprocesos
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.
Plataformas
Plataformas de desarrollo
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Plataformas de destino
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Vea también
Referencia
ServerDdlTrigger Members
Microsoft.SqlServer.Management.Smo Namespace
Otros recursos
Creating, Altering, and Removing Triggers
Desencadenadores DDL
CREATE TRIGGER (Transact-SQL)