SET QUERY_BAND SQL Statement | Teradata Vantage - SET QUERY_BAND - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

Sets or removes a query band for the current session or transaction.

Middle-tier applications, through which end users access Vantage, can be programmed to use the SET QUERY_BAND statement to attach metadata to end user SQL queries.

You can also use query band names to track activity using Viewpoint and to filter requests for execution in addition to their use for Teradata Active System Management.

Vantage logs query bands in DBQL, providing opportunities for subsequent analysis of queries.

Required Privileges

IF you … THEN you must be granted this privilege on your trusted user name …
do not have a need to submit SET QUERY_BAND requests to set a Proxy User none.
need to submit SET QUERY_BAND requests to set a Proxy User GRANT CONNECT THROUGH to a Proxy user. See “GRANT CONNECT THROUGH” in Teradata Vantage™ - SQL Data Control Language, B035-1149.
must SET QUERY_BAND TVSTEMPERATURE = VERYHOT EXECUTE on DBC.VHCTRL.