BATCHDIRECTMARKETINGEFFORTSEGMENT (4.0SP12)

Stores segment information for Direct Marketing Effort batches.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

MKTSEGMENTID

uniqueidentifier

true

The existing segment record.

CODEPARTDEFINITIONVALUESID

uniqueidentifier

true

The source code part definition format value.

MKTSEGMENTCATEGORYCODEID

uniqueidentifier

true

A category for grouping segments together.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

SITEID

uniqueidentifier

true

The site to which this segment belongs.

Fields
Field Field Type Null Notes Description

NAME

nvarchar(100)

false

''

The name of the segment.

DESCRIPTION

nvarchar(255)

false

''

A description about the segment.

CODE

nvarchar(10)

false

''

A unique code that identifies the segment.

SEGMENTTYPECODE

tinyint

false

1

The type of the segment.

SEGMENTTYPE

nvarchar(11) (Computed)

true

Provides a translation for the 'SEGMENTTYPECODE' field.

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.

SEGMENTSITEISNULL

bit

false

0

True if the segment site selected is a null site. False if a segment site was not chosen or was not included in the template.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_BATCHDIRECTMARKETINGEFFORTSEGMENT_CODEPARTDEFINITIONVALUESID

CODEPARTDEFINITIONVALUESID

False

False

False

IX_BATCHDIRECTMARKETINGEFFORTSEGMENT_DATEADDED

DATEADDED

False

False

True

IX_BATCHDIRECTMARKETINGEFFORTSEGMENT_DATECHANGED

DATECHANGED

False

False

False

IX_BATCHDIRECTMARKETINGEFFORTSEGMENT_MKTSEGMENTCATEGORYCODEID

MKTSEGMENTCATEGORYCODEID

False

False

False

IX_BATCHDIRECTMARKETINGEFFORTSEGMENT_MKTSEGMENTID

MKTSEGMENTID

False

False

False

PK_BATCHDIRECTMARKETINGEFFORTSEGMENT

ID

True

True

False

Triggers
Trigger Name Description

TR_BATCHDIRECTMARKETINGEFFORTSEGMENT_AUDIT_UPDATE

TR_BATCHDIRECTMARKETINGEFFORTSEGMENT_AUDIT_DELETE

Referenced by
Referenced by Field

BATCHDIRECTMARKETINGEFFORT

BATCHDIRECTMARKETINGEFFORTSEGMENTID