Export (0) Print
Expand All

DatabaseDdlTrigger.ExecutionContextUser Property

Gets or sets the database user that is the context used when the database DDL trigger executes.

This API is not CLS-compliant. 

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

[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Matrix)]
[SfcReferenceAttribute(typeof(User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']", 
	)]
[CLSCompliantAttribute(false)]
public string ExecutionContextUser { get; set; }

Property Value

Type: String
A String value that specifies the database user that is the context used when the database DDL trigger executes.

This property is required only when the ExecutionContext property is set to ExecuteAsUser.

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

Community Additions

ADD
Show:
© 2014 Microsoft