| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
DBTABLENAME |
nvarchar(100) | Default = '' | Stores the name of the database table containing the table entries for this code table | |
CODETABLENAME |
nvarchar(100) | Default = '' | Stores the friendly name for this code table | |
CODETABLESPECXML |
xml | Contains the xml definition from which the code table was built. | ||
ISBUILTIN |
bit | Default = 0 | Indicates whether or not the code table was created by Blackbaud | |
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) | ![]() |
convert(bigint, TS) | Numeric representation of the timestamp |
ISSECURABLE |
bit | Default = 0 | ||
SITEFILTERINGENABLED |
bit | Default = 0 | ||
SPECUINAME |
nvarchar(100) | Default = '' | Presentation name of the code table used to override the code table name for display in the application. | |
UINAME |
nvarchar(100) (Computed) | case when len(SPECUINAME) = 0 then CODETABLENAME else SPECUINAME end | Name of the code table for display in the application. |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
CATEGORYID |
uniqueidentifier | CODETABLECATEGORY.ID | FK to CODETABLECATEGORY | |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_CODETABLECATALOG_DATEADDED |
DATEADDED | ![]() |
||
PK_CODETABLECATALOG |
ID | ![]() |
![]() |
|
UC_CODETABLECATALOG_CODETABLENAME_ISBUILTIN |
CODETABLENAME, ISBUILTIN | ![]() |
||
UC_CODETABLECATALOG_DBTABLENAME |
DBTABLENAME | ![]() |
||
UIX_CODETABLECATALOG_UINAME_ISBUILTIN |
UINAME, ISBUILTIN | ![]() |
| Trigger Name | Description |
|---|---|
TR_CODETABLECATALOG_AUDIT_UPDATE |
|
TR_CODETABLECATALOG_AUDIT_DELETE |
|
TR_CODETABLECATALOG_DELETE_BBNCCODETABLECATALOGIDMAP |
|
TR_CODETABLECATALOG_INSERT_BBNCCODETABLECATALOGIDMAP |
| Referenced by | Field |
|---|---|
ATTRIBUTECATEGORY |
CODETABLECATALOGID |
CODETABLESECURITY |
CODETABLECATALOGID |
SYSTEMROLEPERM_CODETABLE |
CODETABLECATALOGID |
SYSTEMROLEPERM_CODETABLEENTRY |
CODETABLECATALOGID |

ID
DBTABLENAME
TSLONG
CATEGORYID
IX_CODETABLECATALOG_DATEADDED
UC_CODETABLECATALOG_CODETABLENAME_ISBUILTIN