EVENTCAMPAIGN (4.0SP17)

Associates events with campaigns

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

EVENTID

uniqueidentifier

false

FK to EVENT

CAMPAIGNID

uniqueidentifier

false

FK to CAMPAIGN

CAMPAIGNSUBPRIORITYID

uniqueidentifier

true

FK to CAMPAIGNSUBPRIORITY

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_EVENTCAMPAIGN_DATEADDED

DATEADDED

False

False

True

IX_EVENTCAMPAIGN_DATECHANGED

DATECHANGED

False

False

False

PK_EVENTCAMPAIGN

ID

True

True

False

UIX_EVENTCAMPAIGN_EVENTID_CAMPAIGNID_CAMPAIGNSUBPRIORITYID

EVENTID

CAMPAIGNID

CAMPAIGNSUBPRIORITYID

True

False

False

Triggers
Trigger Name Description

TR_EVENTCAMPAIGN_AUDIT_UPDATE

TR_EVENTCAMPAIGN_AUDIT_DELETE