April 18, 2012

sp_dropextendedproc (Transact-SQL MetaData) Definition

Please note: that the following source code is provided and copyrighted by Microsoft and is for educational purpose only.
The meta data is from an SQL 2012 Server.

I have posted alot more, find the whole list here.

Goto Definition or MetaData

Definition:

sys.sp_dropextendedproc(nvarchar @functname)

MetaData:

   
-- -- -- -- -- -- -- -- -- -- -- -- -- -- sp_dropextendedproc -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
create procedure sys.sp_dropextendedproc
@functname nvarchar(517) -- name of function
as
-- If we're in a transaction, disallow the dropping of the
-- extended stored procedure.
set implicit_transactions off
if @@trancount > 0
begin
raiserror(15002,-1,-1,'sys.sp_dropextendedproc')
return (1)
end

BEGIN TRANSACTION

-- Drop the extended procedure mapping.
EXEC %%System().DropExtendedProc(Name = @functname)

COMMIT

return (0) -- sp_dropextendedproc

No comments:

Post a Comment

Total Pageviews