Compartilhar via


Propriedade do RDL LinkedServerLogin.Impersonate

Gets or sets the Boolean property value that specifies whether the SQL Server authenticated logon account connects to the linked server using its own credentials or using a specified logon name and password.

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

Sintaxe

'Declaração
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property Impersonate As Boolean 
    Get 
    Set
'Uso
Dim instance As LinkedServerLogin 
Dim value As Boolean 

value = instance.Impersonate

instance.Impersonate = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public bool Impersonate { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property bool Impersonate {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member Impersonate : bool with get, set
function get Impersonate () : boolean 
function set Impersonate (value : boolean)

Valor da propriedade

Tipo: System.Boolean
A Boolean property value that specifies whether the SQL Server authenticated logon account connects to the linked server using its own credentials or using a specified logon name and password.If True, the logon connects using a specified logon name and password.If False (default), the logon connects using its own credentials.

Exemplos

Usando servidores vinculados no SMO

Consulte também

Referência

LinkedServerLogin Classe

Namespace Microsoft.SqlServer.Management.Smo

Outros recursos

Servidores vinculados (Mecanismo de Banco de Dados)

sp_addlinkedsrvlogin (Transact-SQL)