Udostępnij za pośrednictwem


DatabaseDdlTrigger.ExecutionContextUser Property

Gets or sets the database user that is the context used when the database DDL trigger executes.

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

Syntax

'Deklaracja
<SfcPropertyAttribute> _
Public Property ExecutionContextUser As String
[SfcPropertyAttribute] 
public string ExecutionContextUser { get; set; }
[SfcPropertyAttribute] 
public:
property String^ ExecutionContextUser {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_ExecutionContextUser ()

/** @property */
public void set_ExecutionContextUser (String value)
public function get ExecutionContextUser () : String

public function set ExecutionContextUser (value : String)

Property Value

A String value that specifies the database user that is the context used when the database DDL trigger executes.

Remarks

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

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.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.