LinkedServerLogin.SetRemotePassword 方法 (SecureString)

Sets the password for an alternative login name used when a distributed query or another SQL Server process accesses data on a linked server using an OLE DB Provider.

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

语法

声明
Public Sub SetRemotePassword ( _
    password As SecureString _
)
用法
Dim instance As LinkedServerLogin 
Dim password As SecureString

instance.SetRemotePassword(password)
public void SetRemotePassword(
    SecureString password
)
public:
void SetRemotePassword(
    SecureString^ password
)
member SetRemotePassword : 
        password:SecureString -> unit
public function SetRemotePassword(
    password : SecureString
)

参数

注释

This property is only valid when the Impersonate property is set to the value True.

示例

在 SMO 中使用链接服务器

请参阅

参考

LinkedServerLogin 类

SetRemotePassword 重载

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

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

sp_addlinkedsrvlogin (Transact-SQL)