StoredProcedure.ExecutionContextPrincipal Property
SQL Server 2012
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)
[CLSCompliantAttribute(false)] [SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Deploy)] [SfcReferenceAttribute(typeof(User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']", )] public string ExecutionContextPrincipal { get; set; }
Property Value
Type: System.StringA 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.
