ODAC

TOraQueueAdmin.GrantQueuePrivilege Method

Grants queue privilege to the grantee.

Class

TOraQueueAdmin

Syntax

procedure GrantQueuePrivilege(Privilege: TQueuePrivilege; const Grantee: string; GrantOption: boolean = False);

Parameters
Privilege
Holds the kind of privilege.
Grantee
Holds the grantee name.
GrantOption
True, if the privilege will be granted with GRANT OPTION. False otherwise.

Remarks

Use the GrantQueuePrivilege method to grant queue privilege to the grantee. Privilege can be qpEnqueue (ENQUEUE privilege), qpDequeue (DEQUEUE privilege) or qpAll (both ENQUEUE and DEQUEUE privileges). If GrantOption parameter is set to True, the privilege will be granted with GRANT OPTION.

See Also

© 1997-2022 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback