Compartir a través de


StoredProcedure.ExecutionContext Property

Gets or sets the execution context for the stored procedure.

Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintaxis

'Declaración
Public Property ExecutionContext As ExecutionContext
public ExecutionContext ExecutionContext { get; set; }
public:
property ExecutionContext ExecutionContext {
    ExecutionContext get ();
    void set (ExecutionContext value);
}
/** @property */
public ExecutionContext get_ExecutionContext ()

/** @property */
public void set_ExecutionContext (ExecutionContext value)
public function get ExecutionContext () : ExecutionContext

public function set ExecutionContext (value : ExecutionContext)

Valor de propiedad

An ExecutionContext object value that specifies the execution context of the stored procedure.

Notas

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

Este espacio de nombres, clase o miembro solamente se admite en la versión 2.0 de Microsoft .NET Framework.

Ejemplo

How to: Create, Alter, and Remove a Stored Procedure in Visual Basic .NET

Seguridad para subprocesos

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

StoredProcedure Class
StoredProcedure Members
Microsoft.SqlServer.Management.Smo Namespace

Otros recursos

Creating, Altering, and Removing Stored Procedures
CREATE PROCEDURE (Transact-SQL)