Tables [cohesion].[cc_ci_attrib]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count0
Created11:18:10 AM Friday, April 20, 2007
Last Modified11:18:10 AM Friday, April 20, 2007
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK__cc_ci_attrib__17036CC0: ci_id\timestamp\attrib_nameForeign Keys FK__cc_ci_attrib__17F790F9: [cohesion].[cc_ci_hist].ci_id\timestampci_idint4
No
Cluster Primary Key PK__cc_ci_attrib__17036CC0: ci_id\timestamp\attrib_nameForeign Keys FK__cc_ci_attrib__17F790F9: [cohesion].[cc_ci_hist].ci_id\timestamptimestampdatetime8
No
Cluster Primary Key PK__cc_ci_attrib__17036CC0: ci_id\timestamp\attrib_nameattrib_namevarchar(90)90
No
attrib_valuevarchar(255)255
Yes
attrib_dtypesmallint2
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK__cc_ci_attrib__17036CC0: ci_id\timestamp\attrib_namePK__cc_ci_attrib__17036CC0ci_id, timestamp, attrib_name
Yes
Foreign Keys Foreign Keys
NameColumns
FK__cc_ci_attrib__17F790F9ci_id->[cohesion].[cc_ci_hist].[ci_id]
timestamp->[cohesion].[cc_ci_hist].[timestamp]
SQL Script
CREATE TABLE [cohesion].[cc_ci_attrib]
(
[ci_id] [int] NOT NULL,
[timestamp] [datetime] NOT NULL,
[attrib_name] [varchar] (90) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[attrib_value] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[attrib_dtype] [smallint] NULL
) ON [PRIMARY]
GO
ALTER TABLE [cohesion].[cc_ci_attrib] ADD CONSTRAINT [PK__cc_ci_attrib__17036CC0] PRIMARY KEY CLUSTERED ([ci_id], [timestamp], [attrib_name]) ON [PRIMARY]
GO
ALTER TABLE [cohesion].[cc_ci_attrib] ADD CONSTRAINT [FK__cc_ci_attrib__17F790F9] FOREIGN KEY ([ci_id], [timestamp]) REFERENCES [cohesion].[cc_ci_hist] ([ci_id], [timestamp])
GO
Uses