Поделиться через


DatabaseDdlTrigger.ExecutionContextUser Property

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

Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Синтаксис

'Декларация
Public Property ExecutionContextUser As String
public string ExecutionContextUser { get; set; }
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)

Значение свойства

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

Замечания

Изменения текста

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

Это пространство имен, класс или элемент поддерживаются только платформой Microsoft .NET Framework версии 2.0.

Пример

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

Синхронизация потоков

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.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

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

Другие ресурсы

Creating, Altering, and Removing Triggers
Триггеры DDL
CREATE TRIGGER (Transact-SQL)