sp_linkedservers
To see the linked servers defined within a SQL Server instance, you simply use sp_linkedservers
:
EXEC sp_linkedservers Go
The sp_linkedservers
execution provides the list of all linked servers on this SQL Server:
Since the introduction of SQL Server 2005, you can also get the same information via system views set up for this purpose. In this case, you can query the system catalog view sys.servers
directly to get your information on linked servers:
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.