TABLECATALOG

The TABLECATALOG table contains meta data about each data table in the system.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
TABLENAME nvarchar(100) Default = '' Name of the table
DESCRIPTION nvarchar(max) Default = '' A description of the data being stored in the table.
TABLESPECXML xml Contains the xml definition from which the table was built.
TABLESPECEXTENSIONXML xml yes For tables defined by Blackbaud, this contains the xml definition for user-defined changes made to the table.
ISBUILTIN bit Default = 0 Indicates whether or not the table was created by Blackbaud.
ISCUSTOMIZABLE bit Default = 0 Indicates whether or not the table can be customized.
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
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT

Indexes

Index Name Fields Unique Primary Clustered
IX_TABLECATALOG_DATEADDED DATEADDED yes
IX_TABLECATALOG_ID_TABLENAME ID
PK_TABLECATALOG ID yes yes
UC_TABLECATALOG_TABLENAME TABLENAME yes

Triggers

Trigger Name Description
TR_TABLECATALOG_AUDIT_UPDATE
TR_TABLECATALOG_AUDIT_DELETE

Referenced by

Referenced by Field
ANNOTATIONTABLEMAPPING ANNOTATIONTABLECATALOGID
ATTRIBUTECATEGORY TABLECATALOGID
ATTRIBUTECATEGORYBATCHTYPEEXTENSIONS TABLECATALOGID
ATTRIBUTERECORDTYPE ID
DATABASESPACEUSED TABLECATALOGID
MICROSITEPAGE TABLECATALOGID
SMARTFIELD TABLECATALOGID