Tables [ca_itrm].[inv_test_item]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count45
Created2:48:58 PM Monday, June 25, 2007
Last Modified2:48:58 PM Monday, June 25, 2007
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key inv_test_item_pk: object_uuid\item_name_id\item_parent_idobject_uuidbinary(16)16
No
Cluster Primary Key inv_test_item_pk: object_uuid\item_name_id\item_parent_iditem_parent_idint4
No
Cluster Primary Key inv_test_item_pk: object_uuid\item_name_id\item_parent_idIndexes inv_test_item_sk1: item_parent_name_id\item_name_id\item_root_name_idIndexes inv_test_item_sk3: item_root_name_id\item_parent_name_id\item_index\domain_uuid\item_type\item_format\item_name_id\item_value_text\item_value_long\item_value_doubleitem_name_idint4
No
item_root_idint4
Yes
Indexes inv_test_item_sk1: item_parent_name_id\item_name_id\item_root_name_idIndexes inv_test_item_sk3: item_root_name_id\item_parent_name_id\item_index\domain_uuid\item_type\item_format\item_name_id\item_value_text\item_value_long\item_value_doubleitem_root_name_idint4
Yes
Indexes inv_test_item_sk1: item_parent_name_id\item_name_id\item_root_name_idIndexes inv_test_item_sk3: item_root_name_id\item_parent_name_id\item_index\domain_uuid\item_type\item_format\item_name_id\item_value_text\item_value_long\item_value_doubleitem_parent_name_idint4
Yes
Indexes inv_test_item_sk3: item_root_name_id\item_parent_name_id\item_index\domain_uuid\item_type\item_format\item_name_id\item_value_text\item_value_long\item_value_doubleitem_indexint4
Yes
Indexes inv_test_item_sk3: item_root_name_id\item_parent_name_id\item_index\domain_uuid\item_type\item_format\item_name_id\item_value_text\item_value_long\item_value_doubleitem_typeint4
Yes
Indexes inv_test_item_sk3: item_root_name_id\item_parent_name_id\item_index\domain_uuid\item_type\item_format\item_name_id\item_value_text\item_value_long\item_value_doubleitem_formatint4
Yes
Indexes inv_test_item_sk3: item_root_name_id\item_parent_name_id\item_index\domain_uuid\item_type\item_format\item_name_id\item_value_text\item_value_long\item_value_doubleitem_value_textnvarchar(384)768
Yes
item_previous_value_textnvarchar(384)768
Yes
Indexes inv_test_item_sk3: item_root_name_id\item_parent_name_id\item_index\domain_uuid\item_type\item_format\item_name_id\item_value_text\item_value_long\item_value_doubleitem_value_longint4
Yes
item_previous_value_longint4
Yes
Indexes inv_test_item_sk3: item_root_name_id\item_parent_name_id\item_index\domain_uuid\item_type\item_format\item_name_id\item_value_text\item_value_long\item_value_doubleitem_value_doublefloat8
Yes
item_previous_value_doublefloat8
Yes
item_dateint4
Yes
item_lockint4
Yes
Indexes inv_test_item_sk2: auto_rep_version\domain_uuidIndexes inv_test_item_sk3: item_root_name_id\item_parent_name_id\item_index\domain_uuid\item_type\item_format\item_name_id\item_value_text\item_value_long\item_value_doubledomain_uuidbinary(16)16
Yes
Indexes inv_test_item_sk2: auto_rep_version\domain_uuidauto_rep_versiontimestamp8
Yes
object_typeint4
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key inv_test_item_pk: object_uuid\item_name_id\item_parent_idinv_test_item_pkobject_uuid, item_name_id, item_parent_id
Yes
inv_test_item_sk1item_parent_name_id, item_name_id, item_root_name_id
inv_test_item_sk2auto_rep_version, domain_uuid
inv_test_item_sk3item_root_name_id, item_parent_name_id, item_index, domain_uuid, item_type, item_format, item_name_id, item_value_text, item_value_long, item_value_double
Permissions
TypeActionOwning Principal
GrantSelectaiadmin
GrantSelectca_itrm_group
GrantSelectupmuser_group
GrantSelectamsgroup
GrantSelectca_itrm_group_ams
SQL Script
CREATE TABLE [ca_itrm].[inv_test_item]
(
[object_uuid] [binary] (16) NOT NULL,
[item_parent_id] [int] NOT NULL,
[item_name_id] [int] NOT NULL,
[item_root_id] [int] NULL,
[item_root_name_id] [int] NULL,
[item_parent_name_id] [int] NULL,
[item_index] [int] NULL,
[item_type] [int] NULL,
[item_format] [int] NULL,
[item_value_text] [nvarchar] (384) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[item_previous_value_text] [nvarchar] (384) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[item_value_long] [int] NULL,
[item_previous_value_long] [int] NULL,
[item_value_double] [float] NULL,
[item_previous_value_double] [float] NULL,
[item_date] [int] NULL,
[item_lock] [int] NULL,
[domain_uuid] [binary] (16) NULL,
[auto_rep_version] [timestamp] NULL,
[object_type] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [ca_itrm].[inv_test_item] ADD CONSTRAINT [inv_test_item_pk] PRIMARY KEY CLUSTERED ([object_uuid], [item_name_id], [item_parent_id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [inv_test_item_sk2] ON [ca_itrm].[inv_test_item] ([auto_rep_version], [domain_uuid]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [inv_test_item_sk1] ON [ca_itrm].[inv_test_item] ([item_parent_name_id], [item_name_id], [item_root_name_id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [inv_test_item_sk3] ON [ca_itrm].[inv_test_item] ([item_root_name_id], [item_parent_name_id], [item_index], [domain_uuid], [item_type], [item_format], [item_name_id], [item_value_text], [item_value_long], [item_value_double]) ON [PRIMARY]
GO
GRANT SELECT ON  [ca_itrm].[inv_test_item] TO [aiadmin]
GRANT SELECT ON  [ca_itrm].[inv_test_item] TO [amsgroup]
GRANT SELECT ON  [ca_itrm].[inv_test_item] TO [ca_itrm_group]
GRANT SELECT ON  [ca_itrm].[inv_test_item] TO [ca_itrm_group_ams]
GRANT SELECT ON  [ca_itrm].[inv_test_item] TO [upmuser_group]
GO
Uses