Executing the Privilege Check Macro - Advanced SQL Engine - Teradata Database

SQL Data Control Language

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
lmb1556233084626.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1149
lifecycle
previous
Product Category
Teradata® Vantage™ NewSQLEngine

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.