sp_dropserver

To unregister linked servers, you can use sp_dropserver. Only members of the sysadmin and setupadmin fixed server roles can execute this stored procedure:

sp_dropserver [@server =] 'server' [, [@droplogins =] {'droplogins' | NULL}]

The elements of the syntax are as follows:

Image server—The linked server that will be unregistered.

Image droplogins—An argument that specifies the logins associated with the server should be dropped. If this argument is not specified, the server is dropped only if logins do not exist ...

Get Microsoft SQL Server 2014 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.