17.00 - Usage Notes - Teradata Database

Teradata Vantageā„¢ - Data Dictionary

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.00
created_date
June 2020
category
Administration
Programming Reference
featnum
B035-1092-170K

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.