Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
Returns the list of linked servers defined in the local server.
Transact-SQL syntax conventions
sp_linkedservers
[ ; ]
None.
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.
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today