getQueryBand(), getQueryBand(int BufSize) - Analytics Database - Teradata Vantage

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-03-30
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
qnu1472247494689
lifecycle
latest
Product Category
Teradata Vantageā„¢

Returns the current query band string for the transaction, session, and profile.

If the query band contains name-value pairs for the transaction, session, and/or profile, the method returns the concatenated transaction, session, and/or profile query band text.

Syntax

getQueryBand(), getQueryBand(int BufSize)

Syntax Elements

BufSize
[Optional] Specifies the maximum length of the query band string to return.

Examples

If the query band contains name-value pairs for the transaction, session, and profile, the method returns the concatenated transaction, session, and profile query band text as follows:

=T>  transaction_query_band  =S>  session_query_band  =P>  profile_query_band

Similarly, if the query band contains name-value pairs for the transaction and session, the method returns the concatenated transaction and session query band text as follows:

=T>  transaction_query_band  =S>  session_query_band

If the query band contains name-value pairs for the transaction only, the text contains:

=T>  transaction_query_band

If the query band contains name-value pairs for the session only, the text contains:

=S>  session_query_band

If the query band contains name-value pairs for the profile only, the text contains:

=P>  profile_query_band