Export (0) Print
Expand All

sp_linkedservers (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 the list of linked servers defined in the local server.

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

Topic link icon Transact-SQL Syntax Conventions

sp_linkedservers

0 (success) or a nonzero number (failure)

Column name

Data type

Description

SRV_NAME

sysname

Name of the linked server.

SRV_PROVIDERNAME

nvarchar( 128)

Friendly name of the OLE DB provider managing access to the specified linked server.

SRV_PRODUCT

nvarchar( 128)

Product name of the linked server.

SRV_DATASOURCE

nvarchar( 4000)

OLE DB data source property corresponding to the specified linked server.

SRV_PROVIDERSTRING

nvarchar( 4000)

OLE DB provider string property corresponding to the linked server.

SRV_LOCATION

nvarchar( 4000)

OLE DB location property corresponding to the specified linked server.

SRV_CAT

sysname

OLE DB catalog property corresponding to the specified linked server.

Requires SELECT permission on the schema.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft