Condividi tramite


ServerDdlTrigger.ExecutionContextLogin Property

Gets or sets the login under the context of which the server DDL trigger executes.

Spazio dei nomi: Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintassi

'Dichiarazione
Public Property ExecutionContextLogin As String
public string ExecutionContextLogin { get; set; }
public:
property String^ ExecutionContextLogin {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_ExecutionContextLogin ()

/** @property */
public void set_ExecutionContextLogin (String value)
public function get ExecutionContextLogin () : String

public function set ExecutionContextLogin (value : String)

Valore proprietà

A ServerDdlTriggerEventSet object that specifies the events that raise the server DDL trigger.

Osservazioni

Testo aggiornato:

This property is required only when the ExecutionContext property is set to ExecuteAsLogin.

Questo spazio dei nomi, classe o membro è supportato solo nella versione 2.0 di Microsoft .NET Framework.

Esempio

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

Thread Safety

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.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

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

Altre risorse

Creating, Altering, and Removing Triggers
Trigger DDL
CREATE TRIGGER (Transact-SQL)