Поделиться через


Метод 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.

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Public Sub SetRemotePassword ( _
    password As String _
)
'Применение
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
)

Параметры

Замечания

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