IMPORTPROCESSBATCH

Contains the batch ID created by an import process

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DATEADDED datetime Default = getdate() Indicates the date this record was added.
DATECHANGED datetime Default = getdate() Indicates the date this record was last changed.
TS timestamp Timestamp.
TSLONG bigint (Computed) yes CONVERT(bigint, TS) Numeric representation of the timestamp.
IMPORTFILEHEADERROW nvarchar(max) Default = '' The header row of the import file used to import the records into the batch.
BATCHCOMMITOPTIONCODE tinyint Default = 0
BATCHCOMMITOPTION nvarchar(50) (Computed) yes CASE [BATCHCOMMITOPTIONCODE] WHEN 0 THEN N'Do nothing' WHEN 1 THEN N'Validate new batches but do not commit any records' WHEN 2 THEN N'Commit batches if they have no batch exceptions' WHEN 3 THEN N'Commit all valid rows from new batches' END
FILENAME nvarchar(255) Default = ''
SUBDIRECTORY nvarchar(550) Default = ''
IMPORTEDNUMBER int Default = 0
IMPORTEDTOTAL money Default = 0
NUMBEROFBATCHEXCEPTIONS int Default = 0
COMMITTEDNUMBER int Default = 0
COMMITTEDTOTAL money Default = 0

Foreign Keys

Foreign Key Field Type Null Notes Description
BUSINESSPROCESSSTATUSID uniqueidentifier BUSINESSPROCESSSTATUS.ID Business process status ID
BATCHID uniqueidentifier BATCH.ID Batch ID
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_IMPORTPROCESSBATCH_DATEADDED DATEADDED yes
IX_IMPORTPROCESSBATCH_DATECHANGED DATECHANGED
PK_IMPORTPROCESSBATCH ID yes yes
UIX_IMPORTPROCESSBATCH_BUSINESSPROCESSSTATUSID BUSINESSPROCESSSTATUSID yes

Triggers

Trigger Name Description
TR_IMPORTPROCESSBATCH_AUDIT_UPDATE
TR_IMPORTPROCESSBATCH_AUDIT_DELETE