Tables [cohesion].[cc_host_elem]
Properties
PropertyValue
Row Count136
Created11:18:10 AM Friday, April 20, 2007
Last Modified11:18:10 AM Friday, April 20, 2007
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK__cc_host_elem__5629CD9C: host_id\element_idForeign Keys FK__cc_host_e__host___5812160E: [cohesion].[cc_host].host_idhost_idint4
No
Cluster Primary Key PK__cc_host_elem__5629CD9C: host_id\element_idForeign Keys FK__cc_host_e__eleme__59063A47: [cohesion].[cc_element].element_idelement_idint4
No
host_elem_statesmallint2
Yes
((1))
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK__cc_host_elem__5629CD9C: host_id\element_idPK__cc_host_elem__5629CD9Chost_id, element_id
Yes
Foreign Keys Foreign Keys
NameColumns
FK__cc_host_e__eleme__59063A47element_id->[cohesion].[cc_element].[element_id]
FK__cc_host_e__host___5812160Ehost_id->[cohesion].[cc_host].[host_id]
SQL Script
CREATE TABLE [cohesion].[cc_host_elem]
(
[host_id] [int] NOT NULL,
[element_id] [int] NOT NULL,
[host_elem_state] [smallint] NULL CONSTRAINT [DF__cc_host_e__host___571DF1D5] DEFAULT ((1))
) ON [PRIMARY]
GO
ALTER TABLE [cohesion].[cc_host_elem] ADD CONSTRAINT [PK__cc_host_elem__5629CD9C] PRIMARY KEY CLUSTERED ([host_id], [element_id]) ON [PRIMARY]
GO
ALTER TABLE [cohesion].[cc_host_elem] ADD CONSTRAINT [FK__cc_host_e__eleme__59063A47] FOREIGN KEY ([element_id]) REFERENCES [cohesion].[cc_element] ([element_id])
GO
ALTER TABLE [cohesion].[cc_host_elem] ADD CONSTRAINT [FK__cc_host_e__host___5812160E] FOREIGN KEY ([host_id]) REFERENCES [cohesion].[cc_host] ([host_id])
GO
Uses