Enterprise Edition Home | Express Edition Home | Previous Page | Next Page   SQL Statements > GRANT >

Granting a Privilege to a Role

You can grant table-level and routine-level privileges to a role if you have the authority to grant these same privileges to login names or to PUBLIC. A role cannot hold database-level privileges.

In Dynamic Server, you can also grant type-level privileges to a role.

The syntax is more restricted for granting privileges to a role than to a user:

This example grants Insert privilege on the supplier table to the role payables:

GRANT INSERT ON supplier TO payables;

Anyone who has been granted the payables role, and who successfully activates it by issuing the SET ROLE statement, can now insert rows into supplier.

Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]