ServerDdlTrigger.ExecutionContext Property
Gets or sets the execution context type used by server DDL trigger, itself, the caller, or a specified login.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Declaration
Public Property ExecutionContext As ServerDdlTriggerExecutionContext
public ServerDdlTriggerExecutionContext ExecutionContext { get; set; }
public:
property ServerDdlTriggerExecutionContext ExecutionContext {
ServerDdlTriggerExecutionContext get ();
void set (ServerDdlTriggerExecutionContext value);
}
/** @property */
public ServerDdlTriggerExecutionContext get_ExecutionContext ()
/** @property */
public void set_ExecutionContext (ServerDdlTriggerExecutionContext value)
public function get ExecutionContext () : ServerDdlTriggerExecutionContext
public function set ExecutionContext (value : ServerDdlTriggerExecutionContext)
Property Value
A ServerDdlTriggerExecutionContext object that specifies the type of execution context used by the server DDL trigger.
Remarks
Updated text:
If you specify that the execution context type is ExecuteAsLogin then you must also set the ExecutionContextLogin property to specify which login to use.
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
Example
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.
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
See Also
Reference
ServerDdlTrigger Class
ServerDdlTrigger Members
Microsoft.SqlServer.Management.Smo Namespace
Other Resources
Creating, Altering, and Removing Triggers
DDL Triggers
CREATE TRIGGER (Transact-SQL)
Change History
Release |
History |
New content:
|