Freigeben über


LinkedServerLogin.SetRemotePassword Method (String)

Sets the password an alternative logon name used when a distributed query or another Microsoft 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 String _
)
public void SetRemotePassword (
    string password
)
public:
void SetRemotePassword (
    String^ password
)
public void SetRemotePassword (
    String password
)
public function SetRemotePassword (
    password : String
)

Parameter

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

Hinweise

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

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Beispiel

How to: Link to an OLE-DB Provider Server in Visual Basic .NET

Threadsicherheit

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.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

LinkedServerLogin Class
LinkedServerLogin Members
Microsoft.SqlServer.Management.Smo Namespace

Andere Ressourcen

Using Linked Servers in SMO
Verbindungsserver
sp_addlinkedsrvlogin (Transact-SQL)
Using Linked Servers in SMO
Verbindungsserver
sp_addlinkedsrvlogin (Transact-SQL)