17.05 - Example: Setting the Account to Change the Priority for a Request - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Release Date
January 2021
Content Type
Programming Reference
Publication ID
B035-1144-175K
Language
English (United States)

User B is submitting a series of large data mining queries using the user default account ‘$L0+DMIN&S&D&H’. The user wants to change to an account with a higher priority to run an emergency report for his manager.

SET SESSION ACCOUNT=‘$H0+EMRG&S&D&H’ FOR REQUEST

After running the emergency report, the account reverts to the default for User B, who continues with low priority data mining.

Changing the account string changes the access level for the session or request only if different workload management rules apply to the new account.