CODETABLECATEGORY (4.0SP20)

Stores the available code table categories.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT

Fields
Field Field Type Null Notes Description

DESCRIPTION

nvarchar(100)

false

The name of the code table category

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_CODETABLECATEGORY_DATEADDED

DATEADDED

False

False

True

PK_CODETABLECATEGORY

ID

True

True

False

UC_CODETABLECATEGORY_DESCRIPTION

DESCRIPTION

True

False

False

Triggers
Trigger Name Description

TR_CODETABLECATEGORY_AUDIT_UPDATE

TR_CODETABLECATEGORY_AUDIT_DELETE

Referenced by
Referenced by Field

CODETABLECATALOG

CATEGORYID