sp_dropextendedproc (Transact-SQL)

Drops an extended stored procedure.

[!UWAGA]

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Use CLR Integration instead.

Ikona łącza do tematu Transact-SQL Syntax Conventions

Składnia

sp_dropextendedproc [ @functname = ] 'procedure' 

Arguments

  • [ @functname =] 'procedure'
    Is the name of the extended stored procedure to drop. procedure is nvarchar(517), with no default.

Return Code Values

0 (success) or 1 (failure)

Result Sets

None

Uwagi

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.

In SQL Server 2012 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.

Permissions

Only members of the sysadmin fixed server role can execute sp_dropextendedproc.

Examples

The following example drops the xp_hello extended stored procedure.

[!UWAGA]

This extended stored procedure must already exist, or the example will return an error message.

USE master;
GO
EXEC sp_dropextendedproc 'xp_hello';

Zobacz także

Odwołanie

sp_addextendedproc (Transact-SQL)

sp_helpextendedproc (Transact-SQL)

System Stored Procedures (Transact-SQL)