Udostępnij przez


LinkedServerLogin.SetRemotePassword Method (String)

Sets the password an alternative logon 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

'Deklaracja
Public Sub SetRemotePassword ( _
    password As String _
)
public void SetRemotePassword (
    string password
)
public:
void SetRemotePassword (
    String^ password
)
public void SetRemotePassword (
    String password
)
public function SetRemotePassword (
    password : String
)

Parameters

  • password
    A String value that specifies the password that is used with the logon name specified in the RemoteUser property.

Remarks

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

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.