June 13, 2012

sp_unsetapprole (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_unsetapprole(varbinary @cookie)

MetaData:

 create procedure sys.sp_unsetapprole  
@cookie varbinary(8000) -- cookie
as
-- SETUP RUNTIME OPTIONS / DECLARE VARIABLES --
set nocount on

-- DISALLOW USER TRANSACTION --
set implicit_transactions off
if (@@trancount > 0)
begin
raiserror(15002,-1,-1,'sys.sp_setapprole')
return (1)
end

-- SP MUST BE CALLED AT ADHOC LEVEL --
if (@@nestlevel > 1)
begin
raiserror(15422,-1,-1)
return (1)
end

EXEC %%AppRole().Unset(Cookie = @cookie)

-- RETURN SUCCESS/FAILURE --
if (@@error <> 0)
return (1)
return (0) -- sp_unsetapprole

No comments:

Post a Comment

Total Pageviews