KPIINSTANCESITE (4.0)

Stores the selected sites for a KPI instance.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

KPIINSTANCEID

uniqueidentifier

false

FK to KPIINSTANCE

SITEID

uniqueidentifier

false

FK to SITE

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

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_KPIINSTANCESITE_DATEADDED

DATEADDED

False

False

True

IX_KPIINSTANCESITE_DATECHANGED

DATECHANGED

False

False

False

PK_KPIINSTANCESITE

ID

True

True

False

Triggers
Trigger Name Description

TR_KPIINSTANCESITE_AUDIT_UPDATE

TR_KPIINSTANCESITE_AUDIT_DELETE