Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

sys.linked_logins (Transact-SQL)

Applies To: SQL Server 2014, SQL Server 2016 Preview

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Returns a row per linked-server-login mapping, for use by RPC and distributed queries from local server to the corresponding linked server.

Applies to: SQL Server (SQL Server 2008 through current version).

Column name

Data type

Description

server_id

int

ID of the server in sys.servers.

local_principal_id

int

Server-principal to whom mapping applies.

0 = wildcard or public.

uses_self_credential

bit

If 1, mapping indicates session should use its own credentials; otherwise, 0 indicates that session uses the name and password that are supplied.

remote_name

sysname

Remote user name to use when connecting. Password is also stored, but not exposed in catalog view interfaces.

modify_date

datetime

Date the linked login was last changed.

The visibility of the metadata in catalog views is limited to securables that a user either owns or on which the user has been granted some permission. For more information, see Metadata Visibility Configuration.

Community Additions

ADD
Show:
© 2015 Microsoft