The SQL tab displays the SQL for the selected query and allows you to export the SQL. If the SQL is from a stored procedure on Teradata Database 15.10 and later, the name of the stored procedure displays. On Teradata Database 16.0 and later, the default database name of the session at the start of the request displays. If the SQL is from a stored procedure, the default database name at the time the stored procedure was compiled displays. This information is read-only.The tab is available only when a query is active, blocked, or delayed. For Teradata Database systems, the tab is available only when a query meets thresholds established by the Teradata Viewpoint Administrator.