KPIINSTANCEHISTORY (4.0SP20)

Contains a history of KPI instance values.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

KPIINSTANCEID

uniqueidentifier

false

KPI instance to which the value belongs.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

VALUE

decimal(20, 5)

false

0

Value for the KPI.

ASOFDATE

datetime

false

Date which represents the time at which the KPI was calculated.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_KPIINSTANCEHISTORY_ASOFDATE

ASOFDATE

False

False

False

IX_KPIINSTANCEHISTORY_DATEADDED

DATEADDED

False

False

True

IX_KPIINSTANCEHISTORY_DATECHANGED

DATECHANGED

False

False

False

IX_KPIINSTANCEHISTORY_KPIINSTANCEID

KPIINSTANCEID

False

False

False

PK_KPIINSTANCEHISTORY

ID

True

True

False

Triggers
Trigger Name Description

TR_KPIINSTANCEHISTORY_AUDIT_UPDATE

TR_KPIINSTANCEHISTORY_AUDIT_DELETE