Tables [dbo].[wsm_template]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CS_AS
Row Count0
Created11:08:02 AM Wednesday, March 07, 2007
Last Modified11:10:02 AM Wednesday, March 07, 2007
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key XPKwsm_template: templateuuidtemplateuuidbinary(16)16
No
Indexes xwsm_template_name: name\versionnamenvarchar(255)510
No
Indexes xwsm_template_name: name\versionversionint4
No
xml_definitionimagemax
No
Foreign Keys r_1540: [dbo].[wsm_template_type].template_type_idIndexes xif1wsm_template: template_type_idtemplate_type_idint4
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKwsm_template: templateuuidXPKwsm_templatetemplateuuid
Yes
xwsm_template_namename, version
Yes
xif1wsm_templatetemplate_type_id
Foreign Keys Foreign Keys
NameColumns
r_1540template_type_id->[dbo].[wsm_template_type].[template_type_id]
Permissions
TypeActionOwning Principal
GrantDeletewsm_admin_group
GrantInsertwsm_admin_group
GrantSelectwsm_admin_group
GrantUpdatewsm_admin_group
GrantSelectwsm_ro_group
SQL Script
CREATE TABLE [dbo].[wsm_template]
(
[templateuuid] [binary] (16) NOT NULL,
[name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[version] [int] NOT NULL,
[xml_definition] [image] NOT NULL,
[template_type_id] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[wsm_template] ADD CONSTRAINT [XPKwsm_template] PRIMARY KEY CLUSTERED ([templateuuid]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [xwsm_template_name] ON [dbo].[wsm_template] ([name], [version]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [xif1wsm_template] ON [dbo].[wsm_template] ([template_type_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wsm_template] ADD CONSTRAINT [r_1540] FOREIGN KEY ([template_type_id]) REFERENCES [dbo].[wsm_template_type] ([template_type_id])
GO
GRANT SELECT ON  [dbo].[wsm_template] TO [wsm_admin_group]
GRANT INSERT ON  [dbo].[wsm_template] TO [wsm_admin_group]
GRANT DELETE ON  [dbo].[wsm_template] TO [wsm_admin_group]
GRANT UPDATE ON  [dbo].[wsm_template] TO [wsm_admin_group]
GRANT SELECT ON  [dbo].[wsm_template] TO [wsm_ro_group]
GO
Uses
Used By