Aracılığıyla paylaş


ServerDdlTrigger.ExecutionContextLogin Property

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

This API is not CLS-compliant. 

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

Syntax

'Bildirim
<CLSCompliantAttribute(False)> _
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
<SfcReferenceAttribute(GetType(Login), "Server[@Name = '{0}']/Login[@Name = '{1}']",  _
    )> _
Public Property ExecutionContextLogin As String
    Get
    Set
'Kullanım
Dim instance As ServerDdlTrigger
Dim value As String

value = instance.ExecutionContextLogin

instance.ExecutionContextLogin = value
[CLSCompliantAttribute(false)]
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
[SfcReferenceAttribute(typeof(Login), "Server[@Name = '{0}']/Login[@Name = '{1}']", 
    )]
public string ExecutionContextLogin { get; set; }
[CLSCompliantAttribute(false)]
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
[SfcReferenceAttribute(typeof(Login), L"Server[@Name = '{0}']/Login[@Name = '{1}']", 
    )]
public:
property String^ ExecutionContextLogin {
    String^ get ();
    void set (String^ value);
}
[<CLSCompliantAttribute(false)>]
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
[<SfcReferenceAttribute(typeof(Login), "Server[@Name = '{0}']/Login[@Name = '{1}']", 
    )>]
member ExecutionContextLogin : string with get, set
function get ExecutionContextLogin () : String
function set ExecutionContextLogin (value : String)

Property Value

Type: System.String
A ServerDdlTriggerEventSet object that specifies the events that raise the server DDL trigger.

Remarks

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

Examples

Creating, Altering, and Removing Triggers

See Also

Reference

ServerDdlTrigger Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

DDL Triggers

CREATE TRIGGER (Transact-SQL)