The rules for creating an exception table are as follows:
The information in the "message" column will be according to the
following structure:
Table 145. Exception Table Message Column Structure
Field number | Contents | Size | Comments |
---|---|---|---|
1 | Number of constraint violations | 5 characters | Right justified padded with '0' |
2 | Type of first constraint violation | 1 character |
'K' - Check Constraint violation 'F' - Foreign Key violation 'G' - Generated Column violation 'I' - Unique Index violationa 'L' - DATALINK load violation |
3 | Length of constraint/columnb /index IDc/DLVDESCd | 5 characters | Right justified padded with '0' |
4 | Constraint name/Column nameb/index IDc/DLVDESCd | length from the previous field |
|
5 | Separator | 3 characters | <space><colon><space> |
6 | Type of next constraint violation | 1 character |
'K' - Check Constraint violation 'F' - Foreign Key violation 'G' - Generated Column violation 'I' - Unique Index violation 'L' - DATALINK load violation |
7 | Length of constraint/column/index ID/ DLVDESC | 5 characters | Right justified padded with '0' |
8 | Constraint name/Column name/Index ID/ DLVDESC | length from the previous field |
|
..... | ..... | ..... | Repeat Field 5 through 8 for each violation |
|
Table 146. DATALINK Load Violation DESCriptor (DLVDESC)
Field number | Contents | Size | Comments | ||
---|---|---|---|---|---|
1 | Number of violating DATALINK columns | 4 characters | Right justified padded with '0' | ||
2 | DATALINK column number of the first violating column | 4 characters | Right justified padded with '0' | ||
2 | DATALINK column number of the second violating column | 4 characters | Right justified padded with '0' | ||
..... | ..... | ..... | Repeat for each violating column number | ||
|