Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DatabaseDdlTrigger.ExecutionContextUser Property

 

Applies To: SQL Server 2016 Preview

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

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}']", 
	new string[] { ... })]
[CLSCompliantAttribute(false)]
public string ExecutionContextUser { get; set; }

Property Value

Type: System.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.

Legacy Code Example

Return to top
Show:
© 2015 Microsoft