Partager via


LinkedServerLogin.SetRemotePassword Method (SecureString)

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.

Espace de noms: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntaxe

'Déclaration
Public Sub SetRemotePassword ( _
    password As SecureString _
)
public void SetRemotePassword (
    SecureString password
)
public:
void SetRemotePassword (
    SecureString^ password
)
public void SetRemotePassword (
    SecureString password
)
public function SetRemotePassword (
    password : SecureString
)

Paramètres

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

Notes

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

Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.

Exemple

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

Sécurité des threads

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.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

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

Autres ressources

Using Linked Servers in SMO
Liaison des serveurs
sp_addlinkedsrvlogin (Transact-SQL)
Using Linked Servers in SMO
Liaison des serveurs
sp_addlinkedsrvlogin (Transact-SQL)