sp_dropextendedproc

Description

Removes an extended stored procedure (ESP).

Syntax

sp_dropextendedproc esp_name

Parameters

esp_name

is the name of the extended stored procedure to be dropped.

Examples

Example 1

Removes xp_echo:

sp_dropextendedproc xp_echo

Usage

Permissions

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

Granular permissions enabled

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

Granular permissions 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:

Event

Audit option

Command or access audited

Information in extrainfo

38

exec_procedure

Execution of a procedure

  • 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

See also

Commands drop procedure

System procedures sp_addextendedproc, sp_freedll, sp_helpextendedproc