O'Reilly logo

Microsoft® SQL Server 2012 Unleashed by Alex T. Silverstein, Chris Gallelli, Paul T. Bertucci, Ray Rankins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required