UFN_SYSTEMPRIVILEGE_EXISTS
Determines if a given system privilege spec exists.
Return
Return Type |
---|
bit |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN |
Definition
Copy
CREATE function dbo.UFN_SYSTEMPRIVILEGE_EXISTS
(
@ID uniqueidentifier
)
returns bit
with execute as caller
as
begin
if exists (select ID from dbo.SYSTEMPRIVILEGECATALOG where ID = @ID)
return 1;
return 0;
end