Table
SysTraceTableSQL
SQL statement trace log
Log of SQL statements captured during tracing. Each row holds the statement text, its type, the connection and database session, row counts, timing and the call stack. Other trace tables link to it by record ID.
- Table name
SysTraceTableSQL- Module
System administration- Table group
Framework- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
None- Replacement key
None- Key fields
None- Model
ApplicationPlatform
Fields (29)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
callStackCall stack recorded when the statement ran. | String (-1)SysTraceCallstack | No | None | |
CategoryKind of trace, taken from the SQL trace category values. | EnumSysTraceSQLCategorySqlTraceCategory (enum) | No | None | |
CodeNumeric code recorded with the trace entry.low confidence | IntegerSysTraceCode | No | None | |
ConnectionIdIdentifier of the connection that ran the statement. | IntegerSysTraceSQLConnectionId | No | None | |
ConnectionSPIDIdentifier of the database session that ran the statement. | IntegerSysSQLSPID | No | None | |
ConnectionTypeType of the connection used for the statement. | String (40)SysTraceSQLConnectionType | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DetailTypeType of the statement detail, using the statement type values. | EnumStatementType (enum) | No | None | |
IsLobsIncludedShows whether large objects were included. | EnumSysTraceSQLLobsIncludedNoYes (enum) | No | None | |
IsMoreDataPendingShows whether more data was still waiting to be fetched. | EnumSysTraceSQLMoreDataNoYes (enum) | No | None | |
IsSelectedForUpdateShows whether the records were selected for update. | EnumSysTraceSQLSelectedForUpdateNoYes (enum) | No | None | |
IsStartedWithinTransactionShows whether the select started inside a transaction. | EnumSysTraceSQLIsStartedWithinTransactionNoYes (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RowsAffectedNumber of records affected by the statement. | IntegerSysTraceSQLRowsAffected | No | None | |
RowSizeSize of a record returned by the statement. | IntegerSysTraceSQLRowSize | No | None | |
RowsPerFetchNumber of records read in each fetch. | IntegerSysTraceSQLRowsPerFetch | No | None | |
StatementText of the SQL statement. | String (-1)SysSQLStatementText | No | None | |
StatementIdIdentifier of the statement. | IntegerSysTraceSQLStatementId | No | None | |
StatementReuseCountNumber of times the statement was reused. | IntegerSysTraceSQLReuseCount | No | None | |
StatementTypeType of the statement, such as the kind of SQL operation. | EnumSysTraceSQLStatementTypeStatementType (enum) | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TextDescription of the SQL error, if one occurred. | String (-1)SysTraceSQLErrorText | No | None | |
TextDetailsExtra text details for the trace entry. | String (-1)SysTraceTextDetails | No | None | |
traceContainerStored details of the trace entry, held as a container. | ContainerSysTraceContainer | No | None | |
traceTimeExecution time recorded for the statement. | IntegerSysTraceTiming | No | None |
Indexes (1)
CreatedTypeIdxcreatedDateTime,Category,traceTime,RecIdUnique.
Get this data out
No public entity reads from SysTraceTableSQL. Its data is only reachable through the application, a custom entity or a database export.
Need help with SysTraceTableSQL in a report, an integration or a migration? Talk to Dr Dynamics.