Export (0) Print
Expand All

ServerDdlTrigger.ExecutionContext Property

Gets or sets the execution context type used by server DDL trigger, itself, the caller, or a specified login.

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

public ServerDdlTriggerExecutionContext ExecutionContext { get; set; }

Property Value

Type: Microsoft.SqlServer.Management.Smo.ServerDdlTriggerExecutionContext
A ServerDdlTriggerExecutionContext object that specifies the type of execution context used by the server DDL trigger.

If you specify that the execution context type is ExecuteAsLogin then you must also set the ExecutionContextLogin property to specify which login to use.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft