sp_dropexternlogin

(Component Integration Services only) Drops the definition of a remote login previously defined by sp_addexternlogin.

Syntax

sp_dropexternlogin  server  [,  loginame  [,  rolename ] ]

Parameters

Examples

Usage

There are additional considerations when using sp_dropexternlogin:
  • sp_dropexternlogin drops the definition of a remote login previously defined to the local server by sp_addexternlogin.

  • You cannot execute sp_dropexternlogin from within a transaction.

  • The remote server must be defined to the local server by sp_addserver.

  • To add and drop local server users, use sp_addalias, create login, and drop login.

Permissions

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

SettingDescription
Enabled

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

sp_dropexternlogin can be executed by users bound to loginname.

Disabled

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

sp_dropexternlogin can be executed by users bound to loginname.

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_addexternlogin
sp_helpexternlogin
sp_addlogin
sp_droplogin