The sa_diagnostic_statement table is owned by the dbo user, and stores the text of statements. A row in this table represents a SQL statement that was executed by the server. Such statements may have been issued by an external source, such as a client request, or by an internal source such as a procedure, trigger, or user-defined function. Internal statements only appear here once per session.
There are two versions of this table: sa_diagnostic_statement, and sa_tmp_diagnostic_statement.
Column name | Column type | Description |
---|---|---|
logging_session_id | UNSIGNED INT |
The logging session during which the statement was submitted. |
statement_id | UNSIGNED BIGINT |
A unique number assigned to the statement for tracing purposes. |
database_object | UNSIGNED BIGINT |
If the statement came from a procedure, trigger, or function, this is the ID as specified in the ISYSOBJECT system table. |
line_number | UNSIGNED SMALLINT |
If the statement formed part of a compound statement, this reflects the ordinal position of the statement within the compound statement. |
signature | UNSIGNED INT |
Used internally to group similar queries. |
statement_text | LONG VARCHAR |
The statement text. |
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |