BATCHSTATISTICS
Stores information about users batch operations.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| NUMBERROWSADDED |
int |
|
Default = 0 |
Number of rows added by the user |
| NUMBERROWSCHANGED |
int |
|
Default = 0 |
Number of rows changed by the user |
| NUMBERROWSDELETED |
int |
|
Default = 0 |
Number of rows deleted by the user |
| NUMBERROWSCOMMITTEDSUCCESSFULLY |
int |
|
Default = 0 |
Number of rows successfully committed by the user |
| NUMBERROWEXCEPTIONS |
int |
|
Default = 0 |
Number of row exceptions |
| 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. |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| BATCHID |
uniqueidentifier |
|
BATCH.ID
|
FK to BATCH |
| APPUSERID |
uniqueidentifier |
|
APPUSER.ID
|
FK to APPUSER |
| BATCHTYPECATALOGID |
uniqueidentifier |
|
BATCHTYPECATALOG.ID
|
FK to BATCHTYPECATALOG |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_BATCHSTATISTICS_APPUSERID_BATCHTYPECATALOGID |
APPUSERID, BATCHTYPECATALOGID |
|
|
|
| IX_BATCHSTATISTICS_DATEADDED |
DATEADDED |
|
|
yes |
| IX_BATCHSTATISTICS_DATECHANGED |
DATECHANGED |
|
|
|
| PK_BATCHSTATISTICS |
ID |
yes |
yes |
|
Triggers