Grant Privileges to All Users Example | Teradata VantageCloud Lake - Example: Granting Privileges on Sys_Calendar to All Users - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

Sys_Calendar is a system database used to contain the Sys_Calendar.CalDates table and Sys_Calendar.Calendar view. The Calendar view, a user-accessible tool for date arithmetic, permits easy specification of arithmetic expressions and aggregation, and is particularly useful when requesting values aggregated by weeks, months, year-to-date, years, and so on. You can use the Calendar view to get attributes for any date between the years 1900 and 2100, such as which day of the week or which week of the month a date occurs.

Use the following procedure to grant SELECT privilege on Sys_Calendar to all Vantage users.
  1. Start the client program of your choice and log on to Vantage as DBADMIN.
  2. Run the following request:

    GRANT SELECT ON Sys_Calendar TO PUBLIC;

See also System Calendar View.