Obtaining General Information About Linked Servers

You can use both SQL Server Management Studio and the system stored procedures to gather information about linked servers and the referenced data sources. Following are some of the most-often-used system stored procedures:

sp_linkedserversThis returns a list of linked servers defined on the local server.

sp_catalogsThis displays a list of catalogs and descriptions for a specified linked server.

sp_indexesThis shows index information for a specified remote table.

sp_primarykeysThis returns the primary key columns for the specified table.

sp_foreignkeysThis lists the foreign keys defined for the remote table.

sp_tables_exThis displays table information from the linked server. ...

Get Microsoft® SQL Server 2008 R2 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.