| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
NAME |
nvarchar(100) | Default = '' | ||
SMARTFIELDDATAFORMITEM |
xml | ![]() |
Stores the saved parameters for the smart field stored procedure. | |
VALUECOLUMNNAME |
nvarchar(128) | Default = '' | ||
USEVALUEGROUP |
bit | Default = 0 | ||
LASTRUNON |
datetime | ![]() |
Stores the date that the smart field was last updated. This value is used to filter records based on the record's DATECHANGED value. | |
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. |
SYSTEMFIELD |
bit | Default = 0 | A flag to indicate if this is a field that is used by other parts of the system and cannot be modified or deleted. | |
DATEVALUEGROUPUNITCODE |
tinyint | Default = 0 | Stores the scale of value groups for date smart fields. | |
DATEVALUEGROUPUNIT |
nvarchar(8) (Computed) | ![]() |
CASE [DATEVALUEGROUPUNITCODE] WHEN 0 THEN N'Years' WHEN 1 THEN N'Quarters' WHEN 2 THEN N'Months' WHEN 3 THEN N'Weeks' WHEN 4 THEN N'Days' END | Provides a translation for the 'DATEVALUEGROUPUNITCODE' field. |
SITEFILTERENABLEDFORINSTANCE |
bit | Default = 0 | Indicates whether this smart field should have site filtering applied for it. | |
DESCRIPTION |
nvarchar(4000) | Default = '' |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
TABLECATALOGID |
uniqueidentifier | ![]() |
TABLECATALOG.ID | FK to TABLECATALOG |
SMARTFIELDCATALOGID |
uniqueidentifier | SMARTFIELDCATALOG.ID | Join field for the smart field definition. | |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
SOURCEQUERYVIEWCATALOGID |
uniqueidentifier | ![]() |
QUERYVIEWCATALOG.ID | Join field for the queryview that is the source value queryview for this smart field. |
CURRENCYID |
uniqueidentifier | ![]() |
CURRENCY.ID | The currency associated with this smart field. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_SMARTFIELD_CURRENCYID |
CURRENCYID | |||
IX_SMARTFIELD_DATEADDED |
DATEADDED | ![]() |
||
IX_SMARTFIELD_DATECHANGED |
DATECHANGED | |||
IX_SMARTFIELD_SOURCEQUERYVIEWCATALOGID |
SOURCEQUERYVIEWCATALOGID | |||
PK_SMARTFIELD |
ID | ![]() |
![]() |
|
UIX_SMARTFIELD_SMARTFIELDCATALOGID_NAME |
SMARTFIELDCATALOGID, NAME | ![]() |
||
UIX_SMARTFIELD_TABLECATALOGID |
TABLECATALOGID | ![]() |
| Trigger Name | Description |
|---|---|
TR_SMARTFIELD_INSERT |
|
TR_SMARTFIELD_AUDIT_ETLDELETEDID |
|
TR_SMARTFIELD_UPDATE |
|
TR_SMARTFIELD_AUDIT_UPDATE |
|
TR_SMARTFIELD_AUDIT_DELETE |
| Referenced by | Field |
|---|---|
GIVINGLEVELPROGRAM |
SMARTFIELDID |
MKTSOURCEANALYSISRULEFIELDS |
SMARTFIELDID |
OLAPDATASOURCESMARTFIELD |
SMARTFIELDID |
SMARTFIELDSITE |
SMARTFIELDID |
SMARTFIELDSTATUS |
PARAMETERSETID |
SMARTFIELDVALUEGROUP |
SMARTFIELDID |
SPONSORSHIPGREATESTNEEDRULESETREF |
SMARTFIELDID |

ID
NAME
TSLONG
TABLECATALOGID
IX_SMARTFIELD_CURRENCYID
IX_SMARTFIELD_DATEADDED