In one of my previous posts, I demonstrated how to create a Linked Server.
Now during maintenance, if you desire to view the linked servers on your SQL Server instance, use the ‘sys.servers’ system catalog view as shown below:
SELECT name, provider, data_source, connect_timeout,
WHERE is_linked = 1
As part of the maintenance activities, you can also drop a linked server using the following query:
EXEC sp_dropserver @server= 'SUPROTIM-PC'
To remove related remote and linked server logins for the server, use ‘droplogins’ as the second parameter as shown below:
EXEC sp_dropserver @server= 'SUPROTIM-PC', @droplogins='droplogins'
Note: Use sp_helpserver to show available servers.