Usage Notes - Advanced SQL Engine - Teradata Database

Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
prb1610499325399.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1092
lifecycle
previous
Product Category
Teradata Vantageā„¢

The QryLogSQLV view is populated if you request that SQL is shown for a query along with the default information. The WITH SQL option causes DBQL to attempt to log the full statement text, no matter how large, into the DBQLSQLTbl table. If the SQL text is greater than 31,000 characters, multiple rows are generated.

Possible Values for SQLTextInfo

SQLTextInfo contains a full SQL text segment, a string of up to approximately 32,000 characters. If the SQL text is greater than 31,000 characters, multiple rows are generated. Note, BTEQ has a limited column length; use Teradata Studio to display longer lengths.

SQLTextInfo can also contain the following:

  • Unavailable
  • Null
SqlTextInfo may be Null or it may be Unavailable when the SQL is not available to DBQL at the end of the query or when a query fails. Unavailable is seen when it fails to translate correctly, for example, when the SQL is submitted from a mainframe in EBCDIC format or when UNICODE translation is required.