Share via


LinkedServerLogin.SetRemotePassword Method (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.

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

Syntax

'Declaration
Public Sub SetRemotePassword ( _
    password As SecureString _
)
'Usage
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
)

Parameters

Remarks

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

Examples

Using Linked Servers in SMO

See Also

Reference

LinkedServerLogin Class

SetRemotePassword Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Linked Servers (Database Engine)

sp_addlinkedsrvlogin (Transact-SQL)