Tables [dbo].[arg_attribute_def]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count8174
Created12:30:43 PM Sunday, December 05, 2010
Last Modified7:00:29 PM Tuesday, April 26, 2011
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key XPKarg_attribute_def: class_name\attribute_nameForeign Keys SADSADJOIN02: [dbo].[arg_attribute_def].class_name\related_base_attributeForeign Keys SADSCDJOIN01: [dbo].[arg_class_def].class_nameclass_namenvarchar(255)510
No
Cluster Primary Key XPKarg_attribute_def: class_name\attribute_nameattribute_namenvarchar(255)510
No
attribute_labelnvarchar(255)510
Yes
attribute_aliasnvarchar(100)200
Yes
relation_typesmallint2
Yes
Foreign Keys SADSFDJOIN01: [dbo].[arg_field_def].table_name\field_nameIndexes sysadindex02: table_name\field_nametable_namenvarchar(32)64
Yes
Foreign Keys SADSFDJOIN01: [dbo].[arg_field_def].table_name\field_nameIndexes sysadindex02: table_name\field_namefield_namenvarchar(32)64
Yes
Foreign Keys SADSADJOIN01: [dbo].[arg_class_def].attribute_typeattribute_typenvarchar(255)510
Yes
Foreign Keys SADSJDJOIN01: [dbo].[arg_join_def].join_nameIndexes sysadindex03: join_namejoin_namenvarchar(100)200
Yes
Foreign Keys SADSCDJOIN02: [dbo].[arg_class_def].class_templateIndexes sysadindex04: class_templateclass_templatenvarchar(255)510
Yes
extensiblesmallint2
Yes
Indexes sysadindex05: control_object\control_namecontrol_objectnvarchar(50)100
Yes
Indexes sysadindex05: control_object\control_namecontrol_namenvarchar(50)100
Yes
creation_usernvarchar(64)128
Yes
creation_dateint4
Yes
last_update_usernvarchar(64)128
Yes
last_update_dateint4
Yes
version_numberint4
Yes
('0')
customizablesmallint2
Yes
Foreign Keys SADSADJOIN02: [dbo].[arg_attribute_def].class_name\related_base_attributerelated_base_attributenvarchar(255)510
Yes
api_property_namenvarchar(100)200
Yes
api_object_namenvarchar(100)200
Yes
api_updatableint4
Yes
hierarchysmallint2
Yes
app_filtersmallint2
No
('2')
inactivesmallint2
Yes
((0))
api_searchableint4
Yes
((1))
coreint4
No
('1 ')
is_selectableint4
Yes
('0')
api_internalint4
Yes
('0')
Foreign Keys arg_attribute_def_fk01: [dbo].[al_configuration_def].config_idconfig_idint4
Yes
default_attributeint4
No
('0')
sp_eligibleint4
Yes
('0')
service_provider_eligibleint4
Yes
('0')
attribute_name_overridenvarchar(100)200
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKarg_attribute_def: class_name\attribute_nameXPKarg_attribute_defclass_name, attribute_name
Yes
sysadindex02table_name, field_name
sysadindex03join_name
sysadindex04class_template
sysadindex05control_object, control_name
Foreign Keys Foreign Keys
NameColumns
arg_attribute_def_fk01config_id->[dbo].[al_configuration_def].[id]
SADSADJOIN01attribute_type->[dbo].[arg_class_def].[class_name]
SADSADJOIN02class_name->[dbo].[arg_attribute_def].[class_name]
related_base_attribute->[dbo].[arg_attribute_def].[attribute_name]
SADSCDJOIN01class_name->[dbo].[arg_class_def].[class_name]
SADSCDJOIN02class_template->[dbo].[arg_class_def].[class_name]
SADSFDJOIN01table_name->[dbo].[arg_field_def].[table_name]
field_name->[dbo].[arg_field_def].[field_name]
SADSJDJOIN01join_name->[dbo].[arg_join_def].[join_name]
Permissions
TypeActionOwning Principal
GrantDeleteswcmadmin
GrantInsertswcmadmin
GrantSelectswcmadmin
GrantUpdateswcmadmin
SQL Script
CREATE TABLE [dbo].[arg_attribute_def]
(
[class_name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[attribute_name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[attribute_label] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[attribute_alias] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[relation_type] [smallint] NULL,
[table_name] [nvarchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[field_name] [nvarchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[attribute_type] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[join_name] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[class_template] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[extensible] [smallint] NULL,
[control_object] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[control_name] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[creation_user] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[creation_date] [int] NULL,
[last_update_user] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[last_update_date] [int] NULL,
[version_number] [int] NULL CONSTRAINT [DF__arg_attri__versi__66EA454A] DEFAULT ('0'),
[customizable] [smallint] NULL,
[related_base_attribute] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[api_property_name] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[api_object_name] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[api_updatable] [int] NULL,
[hierarchy] [smallint] NULL,
[app_filter] [smallint] NOT NULL CONSTRAINT [DF__arg_attri__app_f__1611AA8C] DEFAULT ('2'),
[inactive] [smallint] NULL CONSTRAINT [DF__arg_attri__inact__2E5A6E80] DEFAULT ((0)),
[api_searchable] [int] NULL CONSTRAINT [DF__arg_attri__api_s__2F4E92B9] DEFAULT ((1)),
[core] [int] NOT NULL CONSTRAINT [DF__ARG_ATTRIB__CORE__118A8A8C] DEFAULT ('1 '),
[is_selectable] [int] NULL CONSTRAINT [DF__ARG_ATTRI__IS_SE__127EAEC5] DEFAULT ('0'),
[api_internal] [int] NULL CONSTRAINT [DF__ARG_ATTRI__API_I__1372D2FE] DEFAULT ('0'),
[config_id] [int] NULL,
[default_attribute] [int] NOT NULL CONSTRAINT [DF__ARG_ATTRI__DEFAU__1466F737] DEFAULT ('0'),
[sp_eligible] [int] NULL CONSTRAINT [DF__ARG_ATTRI__SP_EL__155B1B70] DEFAULT ('0'),
[service_provider_eligible] [int] NULL CONSTRAINT [DF__arg_attri__servi__35076C0F] DEFAULT ('0'),
[attribute_name_override] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[arg_attribute_def] ADD CONSTRAINT [XPKarg_attribute_def] PRIMARY KEY CLUSTERED ([class_name], [attribute_name]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [sysadindex04] ON [dbo].[arg_attribute_def] ([class_template]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [sysadindex05] ON [dbo].[arg_attribute_def] ([control_object], [control_name]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [sysadindex03] ON [dbo].[arg_attribute_def] ([join_name]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [sysadindex02] ON [dbo].[arg_attribute_def] ([table_name], [field_name]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[arg_attribute_def] ADD CONSTRAINT [arg_attribute_def_fk01] FOREIGN KEY ([config_id]) REFERENCES [dbo].[al_configuration_def] ([id])
GO
ALTER TABLE [dbo].[arg_attribute_def] ADD CONSTRAINT [SADSADJOIN01] FOREIGN KEY ([attribute_type]) REFERENCES [dbo].[arg_class_def] ([class_name])
GO
ALTER TABLE [dbo].[arg_attribute_def] ADD CONSTRAINT [SADSADJOIN02] FOREIGN KEY ([class_name], [related_base_attribute]) REFERENCES [dbo].[arg_attribute_def] ([class_name], [attribute_name])
GO
ALTER TABLE [dbo].[arg_attribute_def] ADD CONSTRAINT [SADSCDJOIN01] FOREIGN KEY ([class_name]) REFERENCES [dbo].[arg_class_def] ([class_name])
GO
ALTER TABLE [dbo].[arg_attribute_def] ADD CONSTRAINT [SADSCDJOIN02] FOREIGN KEY ([class_template]) REFERENCES [dbo].[arg_class_def] ([class_name])
GO
ALTER TABLE [dbo].[arg_attribute_def] ADD CONSTRAINT [SADSFDJOIN01] FOREIGN KEY ([table_name], [field_name]) REFERENCES [dbo].[arg_field_def] ([table_name], [field_name])
GO
ALTER TABLE [dbo].[arg_attribute_def] ADD CONSTRAINT [SADSJDJOIN01] FOREIGN KEY ([join_name]) REFERENCES [dbo].[arg_join_def] ([join_name])
GO
GRANT SELECT ON  [dbo].[arg_attribute_def] TO [swcmadmin]
GRANT INSERT ON  [dbo].[arg_attribute_def] TO [swcmadmin]
GRANT DELETE ON  [dbo].[arg_attribute_def] TO [swcmadmin]
GRANT UPDATE ON  [dbo].[arg_attribute_def] TO [swcmadmin]
GO
Uses
Used By