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_linkedservers
—This returns a list of linked servers defined on the local server.
• sp_catalogs
—This displays a list of catalogs and descriptions for a specified linked server.
• sp_indexes
—This shows index information for a specified remote table.
• sp_primarykeys
—This returns the primary key columns for the specified table.
• sp_foreignkeys
—This lists the foreign keys defined for the remote table.
• sp_tables_ex
—This 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.