sp_dropremotelogin

Drops a remote user login.

Syntax

sp_dropremotelogin remoteserver [, loginame [, remotename] ]

Parameters

Examples

Usage

Executing sp_dropremotelogin drops a user login from a remote server, deleting the user’s entry from master.dbo.sysremotelogins.

For a more complete discussion on remote logins, see sp_addremotelogin.

To add and drop local server users, use the commands create login and drop login.

Permissions

The permission checks for sp_dropremotelogin differ based on your granular permissions settings.

SettingDescription
Enabled

With granular permissions enabled, you must be a user with manage any remote login privilege.

Disabled

With granular permissions disabled, you must be a user with sa_role.

Auditing

Values in event and extrainfo columns from the sysaudits table are:

InformationValues
Event

38

Audit option

exec_procedure

Command or access audited

Execution of a procedure

Information in extrainfo
  • Roles – Current active roles

  • Keywords or options – NULL

  • Previous value – NULL

  • Current value – NULL

  • Other information – All input parameters

  • Proxy information – Original login name, if set proxy in effect

Related reference
sp_addlogin
sp_addremotelogin
sp_addserver
sp_droplogin
sp_helpremotelogin
sp_helpserver