Click to Rate and Give Feedback
MSDN
MSDN Library
SQL Server
SQL Server 2008
Database Engine
Technical Reference
 sp_dropextendedproc (Transact-SQL)

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
Other versions are also available for the following:
SQL Server 2008 Books Online (June 2009)
sp_dropextendedproc (Transact-SQL)

Drops an extended stored procedure.

ms189506.note(en-us,SQL.100).gifNote:
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.

Topic link icon 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.

In SQL Server 2008 and SQL Server 2005, 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. In SQL Server 2000, sp_dropextendedproc could be used to drop any extended stored procedure.

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.

ms189506.note(en-us,SQL.100).gifNote:
This extended stored procedure must already exist, or the example will return an error message.

USE master;
GO
EXEC sp_dropextendedproc 'xp_hello';
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker