Tables [dbo].[wsm_dc_resource]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CS_AS
Row Count0
Created11:08:06 AM Wednesday, March 07, 2007
Last Modified11:10:01 AM Wednesday, March 07, 2007
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key XPKwsm_dc_resource: res_idres_idint4
No
Indexes xwsm_dc_resource_id: res_type\res_subtype\res_instanceres_typenvarchar(64)128
No
Indexes xwsm_dc_resource_id: res_type\res_subtype\res_instanceres_subtypenvarchar(80)160
No
Indexes xwsm_dc_resource_id: res_type\res_subtype\res_instanceres_instancenvarchar(64)128
No
Foreign Keys r_1544: [dbo].[wsm_attribute_type].attribute_type_idIndexes xif1wsm_dc_resource: attribute_type_idattribute_type_idint4
Yes
Foreign Keys r_1545: [dbo].[wsm_template].templateuuidIndexes xif2wsm_dc_resource: templateuuidtemplateuuidbinary(16)16
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKwsm_dc_resource: res_idXPKwsm_dc_resourceres_id
Yes
xwsm_dc_resource_idres_type, res_subtype, res_instance
Yes
xif1wsm_dc_resourceattribute_type_id
xif2wsm_dc_resourcetemplateuuid
Foreign Keys Foreign Keys
NameColumns
r_1544attribute_type_id->[dbo].[wsm_attribute_type].[attribute_type_id]
r_1545templateuuid->[dbo].[wsm_template].[templateuuid]
SQL Script
CREATE TABLE [dbo].[wsm_dc_resource]
(
[res_id] [int] NOT NULL,
[res_type] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[res_subtype] [nvarchar] (80) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[res_instance] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[attribute_type_id] [int] NULL,
[templateuuid] [binary] (16) NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wsm_dc_resource] ADD CONSTRAINT [XPKwsm_dc_resource] PRIMARY KEY CLUSTERED ([res_id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [xif1wsm_dc_resource] ON [dbo].[wsm_dc_resource] ([attribute_type_id]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [xwsm_dc_resource_id] ON [dbo].[wsm_dc_resource] ([res_type], [res_subtype], [res_instance]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [xif2wsm_dc_resource] ON [dbo].[wsm_dc_resource] ([templateuuid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wsm_dc_resource] ADD CONSTRAINT [r_1544] FOREIGN KEY ([attribute_type_id]) REFERENCES [dbo].[wsm_attribute_type] ([attribute_type_id])
GO
ALTER TABLE [dbo].[wsm_dc_resource] ADD CONSTRAINT [r_1545] FOREIGN KEY ([templateuuid]) REFERENCES [dbo].[wsm_template] ([templateuuid])
GO
Uses
Used By