BACSHEADER (4.0SP17)

Contains information pertaining to the BACS transmission file header.

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

CLIENTNAME

nvarchar(18)

false

''

Charity name for direct debit record.

RETAILERNUMBER

nvarchar(10)

false

''

Retailer/Merchant number for credit card detail record.

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_BACSHEADER_DATEADDED

DATEADDED

False

False

True

IX_BACSHEADER_DATECHANGED

DATECHANGED

False

False

False

PK_BACSHEADER

ID

True

True

False

Triggers
Trigger Name Description

TR_BACSHEADER_AUDIT_UPDATE

TR_BACSHEADER_AUDIT_DELETE