Export (0) Print
Expand All

UserDefinedFunction.ExecutionContextPrincipal Property

Gets or sets the execution context principal for the user-defined function.

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.Deploy|SfcPropertyFlags.Matrix)]
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']", 
	)]
public string ExecutionContextPrincipal { get; set; }

Property Value

Type: String
A String value that specifies the server principal context in which the object is executed.

If the ExecutionContext property is set to ExecuteAsPrincipal, a value is required for the ExecutionContextPrincipal property.

Community Additions

ADD
Show:
© 2014 Microsoft