Tables [cohesion].[cc_service]
Properties
PropertyValue
Row Count19
Created11:18:09 AM Friday, April 20, 2007
Last Modified11:18:09 AM Friday, April 20, 2007
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK__cc_service__0AD2A005: host_id\service_typeForeign Keys FK__cc_servic__host___0CBAE877: [cohesion].[cc_host].host_idhost_idint4
No
Cluster Primary Key PK__cc_service__0AD2A005: host_id\service_typeservice_typesmallint2
No
Foreign Keys FK__cc_servic__proxy__0BC6C43E: [cohesion].[cc_proxy].proxy_idproxy_idint4
Yes
service_portint4
No
tunnel_portint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK__cc_service__0AD2A005: host_id\service_typePK__cc_service__0AD2A005host_id, service_type
Yes
Foreign Keys Foreign Keys
NameColumns
FK__cc_servic__host___0CBAE877host_id->[cohesion].[cc_host].[host_id]
FK__cc_servic__proxy__0BC6C43Eproxy_id->[cohesion].[cc_proxy].[proxy_id]
SQL Script
CREATE TABLE [cohesion].[cc_service]
(
[host_id] [int] NOT NULL,
[service_type] [smallint] NOT NULL,
[proxy_id] [int] NULL,
[service_port] [int] NOT NULL,
[tunnel_port] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [cohesion].[cc_service] ADD CONSTRAINT [PK__cc_service__0AD2A005] PRIMARY KEY CLUSTERED ([host_id], [service_type]) ON [PRIMARY]
GO
ALTER TABLE [cohesion].[cc_service] ADD CONSTRAINT [FK__cc_servic__host___0CBAE877] FOREIGN KEY ([host_id]) REFERENCES [cohesion].[cc_host] ([host_id])
GO
ALTER TABLE [cohesion].[cc_service] ADD CONSTRAINT [FK__cc_servic__proxy__0BC6C43E] FOREIGN KEY ([proxy_id]) REFERENCES [cohesion].[cc_proxy] ([proxy_id])
GO
Uses