16.20 - Executing the Privilege Check Macro - Teradata Vantage NewSQL Engine

Teradata Vantageā„¢ SQL Data Control Language

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
created_date
March 2019
category
Programming Reference
featnum
B035-1149-162K

After you create the macro, you can execute it to check access privileges for a particular user with the command:

execute  database_name.AllUserRights ('username');

where:

  • database_name is the name of the macro, and also identifies database for which the macro checks user privileges
  • username is the name of a permanent database user for which the macro checks privileges
  • The user that executes the macro must have EXECUTE privileges on the database that contains the macro.