Tables [dbo].[arg_field_def]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count7901
Created12:30:43 PM Sunday, December 05, 2010
Last Modified10:34:34 PM Thursday, February 10, 2011
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key XPKarg_field_def: table_name\field_nameForeign Keys SFDSTDJOIN01: [dbo].[arg_table_def].table_nametable_namenvarchar(32)64
No
Cluster Primary Key XPKarg_field_def: table_name\field_namefield_namenvarchar(32)64
No
field_descriptionnvarchar(255)510
Yes
additional_infonvarchar(255)510
Yes
Foreign Keys SFDSTDJOIN02: [dbo].[arg_field_def].actual_table_name\actual_field_nameactual_table_namenvarchar(32)64
Yes
Foreign Keys SFDSTDJOIN02: [dbo].[arg_field_def].actual_table_name\actual_field_nameactual_field_namenvarchar(32)64
Yes
data_typesmallint2
Yes
data_sizesmallint2
Yes
field_uniquesmallint2
Yes
field_requiredsmallint2
Yes
primary_keysmallint2
Yes
foreign_keysmallint2
Yes
extendedsmallint2
Yes
generate_remindersmallint2
Yes
generate_eventsmallint2
Yes
auditablesmallint2
Yes
attribute_popupsmallint2
Yes
attribute_autopopupsmallint2
Yes
attribute_formattedsmallint2
Yes
attribute_hiddensmallint2
Yes
attribute_codedpopupsmallint2
Yes
attribute_auditedsmallint2
Yes
mass_changesmallint2
Yes
label_customizablesmallint2
Yes
user_fieldsmallint2
Yes
report_includedsmallint2
Yes
lookup_includednvarchar(30)60
Yes
Foreign Keys SFDLDJOIN18: [dbo].[arg_listdef].list_idlist_idint4
Yes
creation_usernvarchar(64)128
Yes
creation_dateint4
Yes
last_update_usernvarchar(64)128
Yes
last_update_dateint4
Yes
version_numberint4
Yes
('0')
instancesmallint2
Yes
Foreign Keys SFDTYPJOIN01: [dbo].[ca_location_type].location_type_idlocation_type_idint4
Yes
ishierarchysmallint2
Yes
inactivesmallint2
Yes
((0))
created_by_uapmsmallint2
Yes
((0))
coreint4
No
('1')
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKarg_field_def: table_name\field_nameXPKarg_field_deftable_name, field_name
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
SFDLDJOIN18Cascadelist_id->[dbo].[arg_listdef].[ldid]
SFDSTDJOIN01table_name->[dbo].[arg_table_def].[table_name]
SFDSTDJOIN02actual_table_name->[dbo].[arg_field_def].[table_name]
actual_field_name->[dbo].[arg_field_def].[field_name]
SFDTYPJOIN01location_type_id->[dbo].[ca_location_type].[id]
Permissions
TypeActionOwning Principal
GrantDeleteswcmadmin
GrantInsertswcmadmin
GrantSelectswcmadmin
GrantUpdateswcmadmin
SQL Script
CREATE TABLE [dbo].[arg_field_def]
(
[table_name] [nvarchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[field_name] [nvarchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[field_description] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[additional_info] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[actual_table_name] [nvarchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[actual_field_name] [nvarchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[data_type] [smallint] NULL,
[data_size] [smallint] NULL,
[field_unique] [smallint] NULL,
[field_required] [smallint] NULL,
[primary_key] [smallint] NULL,
[foreign_key] [smallint] NULL,
[extended] [smallint] NULL,
[generate_reminder] [smallint] NULL,
[generate_event] [smallint] NULL,
[auditable] [smallint] NULL,
[attribute_popup] [smallint] NULL,
[attribute_autopopup] [smallint] NULL,
[attribute_formatted] [smallint] NULL,
[attribute_hidden] [smallint] NULL,
[attribute_codedpopup] [smallint] NULL,
[attribute_audited] [smallint] NULL,
[mass_change] [smallint] NULL,
[label_customizable] [smallint] NULL,
[user_field] [smallint] NULL,
[report_included] [smallint] NULL,
[lookup_included] [nvarchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[list_id] [int] 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_field__versi__0662F0A3] DEFAULT ('0'),
[instance] [smallint] NULL,
[location_type_id] [int] NULL,
[ishierarchy] [smallint] NULL,
[inactive] [smallint] NULL CONSTRAINT [DF__arg_field__inact__78BD77DE] DEFAULT ((0)),
[created_by_uapm] [smallint] NULL CONSTRAINT [DF__arg_field__creat__79B19C17] DEFAULT ((0)),
[core] [int] NOT NULL CONSTRAINT [DF__ARG_FIELD___CORE__75785BC3] DEFAULT ('1')
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[arg_field_def] ADD CONSTRAINT [XPKarg_field_def] PRIMARY KEY CLUSTERED ([table_name], [field_name]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[arg_field_def] ADD CONSTRAINT [SFDLDJOIN18] FOREIGN KEY ([list_id]) REFERENCES [dbo].[arg_listdef] ([ldid]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[arg_field_def] ADD CONSTRAINT [SFDSTDJOIN01] FOREIGN KEY ([table_name]) REFERENCES [dbo].[arg_table_def] ([table_name])
GO
ALTER TABLE [dbo].[arg_field_def] ADD CONSTRAINT [SFDSTDJOIN02] FOREIGN KEY ([actual_table_name], [actual_field_name]) REFERENCES [dbo].[arg_field_def] ([table_name], [field_name])
GO
ALTER TABLE [dbo].[arg_field_def] ADD CONSTRAINT [SFDTYPJOIN01] FOREIGN KEY ([location_type_id]) REFERENCES [dbo].[ca_location_type] ([id])
GO
GRANT SELECT ON  [dbo].[arg_field_def] TO [swcmadmin]
GRANT INSERT ON  [dbo].[arg_field_def] TO [swcmadmin]
GRANT DELETE ON  [dbo].[arg_field_def] TO [swcmadmin]
GRANT UPDATE ON  [dbo].[arg_field_def] TO [swcmadmin]
GO
Uses
Used By