RemotePassword Property (SQL-DMO)

The RemotePassword property specifies a password used when a distributed query, or another SQL Server process, accesses a data store using a linked server OLE DB data source definition.

Applies To

LinkedServerLogin Object

Syntax

object.RemotePassword = value

Part Description
object Expression that evaluates to an object in the Applies To list
value String matching the SQL Server data type sysname

Remarks

When a persisted OLE DB data source definition, called a linked server, is created, a login record is created that simply passes connection authentication data to the linked server when attempting to establish a connection to the data source.

Configure a linked server definition to use a specific authentication data by creating additional records mapping logins on the linking server. For more information about using SQL-DMO to configure linked server security, see LinkedServerLogin Object.

Creating a LinkedServerLogin object, and modifying a RemotePassword property value, requires membership in either sysadmin or securityadmin roles.

Data Type

String

Modifiable

Write-only prior to adding the LinkedServerLogin object to its containing LinkedServerLogins collection.

Prototype (C/C++)

HRESULT SetRemotePassword(SQLDMO_LPCSTR NewValue);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.