There are several methods to get the details of linked servers in SQL Server instance. Following simple script can be used to get list of linked servers in current SQL Server instance. This information also can be pulled using SQL Server Management Studio.
1 2 3 4 5 6 7 8 9 10 11 12 |
USE [master]; GO SELECT @@SERVERNAME AS ServerName , Server_Id AS LinkedServerID , name AS LinkedServerName , Product , Provider , Data_Source , Modify_Date FROM sys.servers ORDER BY Server_Id |
Leave a Comment