Partager via


Méthode LinkedServerLogin.SetRemotePassword (String)

Sets the password for 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.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Sub SetRemotePassword ( _
    password As String _
)
'Utilisation
Dim instance As LinkedServerLogin 
Dim password As String

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

Paramètres

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

Notes

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

Exemples

Utilisation de serveurs liés dans SMO

Voir aussi

Référence

LinkedServerLogin Classe

Surcharge SetRemotePassword

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Serveurs liés (Moteur de base de données)

sp_addlinkedsrvlogin (Transact-SQL)