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 descriptionType / EDT / enumMandatoryReferencesIn public entities
callStackCall stack recorded when the statement ran.String (-1)
SysTraceCallstack
NoNone
CategoryKind of trace, taken from the SQL trace category values.Enum
SysTraceSQLCategory
SqlTraceCategory (enum)
NoNone
CodeNumeric code recorded with the trace entry.low confidenceInteger
SysTraceCode
NoNone
ConnectionIdIdentifier of the connection that ran the statement.Integer
SysTraceSQLConnectionId
NoNone
ConnectionSPIDIdentifier of the database session that ran the statement.Integer
SysSQLSPID
NoNone
ConnectionTypeType of the connection used for the statement.String (40)
SysTraceSQLConnectionType
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DetailTypeType of the statement detail, using the statement type values.Enum
StatementType (enum)
NoNone
IsLobsIncludedShows whether large objects were included.Enum
SysTraceSQLLobsIncluded
NoYes (enum)
NoNone
IsMoreDataPendingShows whether more data was still waiting to be fetched.Enum
SysTraceSQLMoreData
NoYes (enum)
NoNone
IsSelectedForUpdateShows whether the records were selected for update.Enum
SysTraceSQLSelectedForUpdate
NoYes (enum)
NoNone
IsStartedWithinTransactionShows whether the select started inside a transaction.Enum
SysTraceSQLIsStartedWithinTransaction
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RowsAffectedNumber of records affected by the statement.Integer
SysTraceSQLRowsAffected
NoNone
RowSizeSize of a record returned by the statement.Integer
SysTraceSQLRowSize
NoNone
RowsPerFetchNumber of records read in each fetch.Integer
SysTraceSQLRowsPerFetch
NoNone
StatementText of the SQL statement.String (-1)
SysSQLStatementText
NoNone
StatementIdIdentifier of the statement.Integer
SysTraceSQLStatementId
NoNone
StatementReuseCountNumber of times the statement was reused.Integer
SysTraceSQLReuseCount
NoNone
StatementTypeType of the statement, such as the kind of SQL operation.Enum
SysTraceSQLStatementType
StatementType (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TextDescription of the SQL error, if one occurred.String (-1)
SysTraceSQLErrorText
NoNone
TextDetailsExtra text details for the trace entry.String (-1)
SysTraceTextDetails
NoNone
traceContainerStored details of the trace entry, held as a container.Container
SysTraceContainer
NoNone
traceTimeExecution time recorded for the statement.Integer
SysTraceTiming
NoNone

Indexes (1)

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.

Email sales@drdynamics.co.uk