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.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property Impersonate As Boolean 
    Get 
    Set
用法
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)

属性值

类型: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.

示例

在 SMO 中使用链接服务器

请参阅

参考

LinkedServerLogin 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

链接服务器(数据库引擎)

sp_addlinkedsrvlogin (Transact-SQL)