To display the privileges that the user has been granted on database D, the SELECT statement must specify:
WHERE DatabaseName = ’D’ AND TableName = ’All’ ;
If privileges have been granted on the database, a row is returned for each privilege.
The UserRightsV view does not return information about implicit privileges of a user due to ownership of objects, nor does it return information about privileges inherited by a user from PUBLIC or roles.
To obtain information about privileges inherited from roles, use the UserRoleRightsV view. For implicit privileges, use the ChildrenV[X] and TablesV[X] views to determine all the objects owned by a user.
For information about the possible values for the AccessRight column, see "AccessRight Column."