Drops a server from the list of known servers, deleting the entry from the master.dbo.sysservers table.
sp_dropserver server_name [, droplogins]
where
Running sp_dropserver on a server that has associated entries in the master.dbo.sysremotelogins table results in an error message, stating that you need to drop the remote users before you can drop the server. To drop all remote logins for a server when dropping the server, use the droplogins option.
This example drops the remote server ACCOUNTS.
sp_dropserver ACCOUNTS
Execute permission defaults to the system administrator and cannot be transferred.
master.dbo.sysremotelogins, master.dbo.sysservers
sp_addserver | sp_helpremotelogin |
sp_dropremotelogin | sp_helpserver |