| title | sp_dropextendedproc (Transact-SQL) | Microsoft Docs | ||
|---|---|---|---|
| ms.custom | |||
| ms.date | 10/04/2017 | ||
| ms.prod | sql | ||
| ms.prod_service | database-engine | ||
| ms.reviewer | |||
| ms.technology | system-objects | ||
| ms.topic | language-reference | ||
| f1_keywords |
|
||
| dev_langs |
|
||
| helpviewer_keywords |
|
||
| ms.assetid | dd93af2c-1b7d-4e39-af23-2d21d270a381 | ||
| author | stevestein | ||
| ms.author | sstein |
[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx-md]
Drops an extended stored procedure.
Note
[!INCLUDEssNoteDepFutureAvoid] Use CLR Integration instead.
Transact-SQL Syntax Conventions
sp_dropextendedproc [ @functname = ] 'procedure'
[ @functname = ] 'procedure'
Is the name of the extended stored procedure to drop. procedure is nvarchar(517), with no default.
0 (success) or 1 (failure)
None
Executing sp_dropextendedproc drops the user-defined extended stored procedure name from the sys.objects catalog view and removes the entry from the sys.extended_procedures catalog view. This stored procedure can be run only in the master database.
sp_dropextendedproc does not drop system extended stored procedures. Instead, the system administrator should deny EXECUTE permission on the extended stored procedure to the public role.
sp_dropextendedproc cannot be executed inside a transaction.
Only members of the sysadmin fixed server role can execute sp_dropextendedproc.
The following example drops the xp_hello extended stored procedure.
Note
This extended stored procedure must already exist, or the example will return an error message.
USE master;
GO
EXEC sp_dropextendedproc 'xp_hello';
sp_addextendedproc (Transact-SQL)
sp_helpextendedproc (Transact-SQL)
System Stored Procedures (Transact-SQL)