17.00 - Example: Using UserRightsV - Teradata Database

Teradata Vantage™ - Data Dictionary

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.00
created_date
June 2020
category
Administration
Programming Reference
featnum
B035-1092-170K

The following SELECT statement displays information about all tables in the Personnel database on which privileges were granted to the requesting user.

SELECT * FROM DBC.UserRightsV
       WHERE DatabaseName=’Personnel’
       AND TableName = ’All’ ;

Result:

DatabaseName   TableName     AccessRight     GrantorName
------------   ---------     -----------     -----------
Personnel      Employee            R          DBC
Personnel      Employee            U          DBC
Personnel      Employee            I          DBC