Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ExecutionContext Property

DatabaseDdlTrigger.ExecutionContext Property

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

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

[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Matrix)]
public DatabaseDdlTriggerExecutionContext ExecutionContext { get; set; }

Property Value

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

If you specify that the execution context type is [F:Microsoft.SqlServer.Management.Smo.DatabaseDdlTriggerExecutionContext.ExecuteAsUser,] you must also set the ExecutionContextUser property to specify which user to use.

Community Additions

ADD
Show:
© 2015 Microsoft