Export (0) Print
Expand All

StoredProcedure.ExecutionContextPrincipal Property

Gets or sets the execution context principal for the stored procedure.

This API is not CLS-compliant. 

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

[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.

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

Community Additions

© 2015 Microsoft