CAMPAIGN (3.0)

Stores information about campaigns .

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.

CAMPAIGNTYPECODEID

uniqueidentifier

true

The type of the campaign.

BASECURRENCYID

uniqueidentifier

true

The base currency associated with this campaign.

Fields
Field Field Type Null Notes Description

USERID

nvarchar(100)

false

''

The default lookup ID for the campaign.

NAME

nvarchar(100)

false

''

The name of the campaign.

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.

DESCRIPTION

nvarchar(300)

false

''

A description of the campaign.

STARTDATE

date

true

The date the campaign began.

ENDDATE

date

true

The date the campaign ended.

SEQUENCE

int

false

0

Used by the hierarchy.

HIERARCHYPATH

hierarchyid

false

ISACTIVE

bit

false

1

Is the campaign active?

Indexes
Index Name Field(s) Unique Primary Clustered

IX_CAMPAIGN_BASECURRENCYID

BASECURRENCYID

False

False

False

IX_CAMPAIGN_DATEADDED

DATEADDED

False

False

True

IX_CAMPAIGN_DATECHANGED

DATECHANGED

False

False

False

PK_CAMPAIGN

ID

True

True

False

UC_CAMPAIGN_HIERARCHYPATH

HIERARCHYPATH

True

False

False

UC_CAMPAIGN_USERID

USERID

True

False

False

Triggers
Trigger Name Description

TR_CAMPAIGN_INSERT_BASECURRENCYID

TR_CAMPAIGN_AUDIT_UPDATE

TR_CAMPAIGN_AUDIT_DELETE

Referenced by
Referenced by Field

BATCHMEMBERSHIPDUESCAMPAIGN

CAMPAIGNID

BATCHREVENUEADDITIONALAPPLICATIONCAMPAIGN

CAMPAIGNID

BATCHREVENUESPLITCAMPAIGN

CAMPAIGNID

CAMPAIGNATTACHMENT

CAMPAIGNID

CAMPAIGNFUNDRAISER

CAMPAIGNID

CAMPAIGNGOAL

CAMPAIGNID

CAMPAIGNHIERARCHYGOAL

CAMPAIGNID

CAMPAIGNMEDIALINK

CAMPAIGNID

CAMPAIGNNOTE

CAMPAIGNID

CAMPAIGNPRIORITY

CAMPAIGNID

CAMPAIGNSITE

CAMPAIGNID

CAMPAIGNTEAM

CAMPAIGNID

DESIGNATIONCAMPAIGN

CAMPAIGNID

EVENTCAMPAIGN

CAMPAIGNID

GIFTAIDDISQUALIFIEDBYCAMPAIGN

ID

MEMBERSHIPLEVELCAMPAIGN

CAMPAIGNID

MEMBERSHIPPROGRAMCAMPAIGN

CAMPAIGNID

NAMINGOPPORTUNITY

CAMPAIGNID

OPPORTUNITYCAMPAIGN

CAMPAIGNID

OPPORTUNITYDESIGNATIONCAMPAIGN

CAMPAIGNID

PLANNEDGIFTADDITIONDESIGNATIONCAMPAIGN

CAMPAIGNID

PLANNEDGIFTDESIGNATIONCAMPAIGN

CAMPAIGNID

RE7MAPCAMPAIGN

ID

REVENUESPLITCAMPAIGN

CAMPAIGNID