Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 VALUE decimal(19, 5)   Default = 0 Value for the KPI.
 ASOFDATE datetime   Date which represents the time at which the KPI was calculated.
 DATEADDED datetime   Default = getdate() Indicates the date this record was added.
 DATECHANGED datetime   Default = getdate() Indicates the date this record was last changed.
 TS timestamp   Timestamp.
 TSLONG bigint (Computed) CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Key Field Type Null Notes Description
 KPIINSTANCEID uniqueidentifier   KPIINSTANCE.ID KPI instance to which the value belongs.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_KPIINSTANCEHISTORY_ASOFDATE ASOFDATE      
 IX_KPIINSTANCEHISTORY_DATEADDED DATEADDED    
 IX_KPIINSTANCEHISTORY_DATECHANGED DATECHANGED      
 IX_KPIINSTANCEHISTORY_KPIINSTANCEID KPIINSTANCEID      
 PK_KPIINSTANCEHISTORY ID  

Trigger Name Description
 TR_KPIINSTANCEHISTORY_AUDIT_UPDATE
 TR_KPIINSTANCEHISTORY_AUDIT_DELETE

Entity-Relationship diagram of this table