The LinkedServerLogin object exposes the properties of an authentication record mapping used when a Microsoft® SQL Server™ installation attempts to connect to a linked server.
SQL Server supports Transact-SQL queries against data stored in one or more SQL Server and heterogeneous databases. SQL Server distributed queries use OLE DB to access a nonlocal data store.
OLE DB defines a provider as an OLE DB component that can deliver data from a store. Typically, OLE DB providers can discriminate among applicable, available data stores. OLE DB defines a data source as that information necessary for the successful delivery of data from the store (such as a user identifier and password).
SQL Server implements persistent storage of an OLE DB provider name and data source definition called a linked server. A record maintaining authentication data for a linked server is called a linked server login.
With the LinkedServerLogin object, you can:
To create a linked server login
Note When a linked server is created, SQL Server creates a default linked server login specifying a NULL local login name and authentication impersonation. This special purpose login mapping record provides authentication data mapping for those logins not mapped explicitly.
| Remove Method (Objects) |
| LocalLogin Property | RemotePassword Property |
| Impersonate Property | RemoteUser Property |