Tables [dbo].[chg_template]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count11
Created11:07:06 AM Wednesday, March 07, 2007
Last Modified9:08:43 PM Friday, December 05, 2008
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key XPKchg_template: ididint4
No
persidnvarchar(30)60
Yes
delint4
No
Indexes chg_template_x0: template_name\tenanttemplate_namenvarchar(30)60
No
descriptionnvarchar(1000)2000
Yes
templateint4
Yes
Indexes chg_template_x1: template_classtemplate_classnvarchar(12)24
Yes
quick_tmpl_typeint4
No
last_mod_dtint4
Yes
last_mod_bybinary(16)16
Yes
Indexes chg_template_x0: template_name\tenantIndexes chg_template_x2: tenanttenantbinary(16)16
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKchg_template: idXPKchg_templateid
Yes
chg_template_x0template_name, tenant
Yes
chg_template_x1template_class
chg_template_x2tenant
Permissions
TypeActionOwning Principal
GrantDeleteservice_desk_admin_group
GrantInsertservice_desk_admin_group
GrantSelectservice_desk_admin_group
GrantUpdateservice_desk_admin_group
SQL Script
CREATE TABLE [dbo].[chg_template]
(
[id] [int] NOT NULL,
[persid] [nvarchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[del] [int] NOT NULL,
[template_name] [nvarchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[description] [nvarchar] (1000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[template] [int] NULL,
[template_class] [nvarchar] (12) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[quick_tmpl_type] [int] NOT NULL,
[last_mod_dt] [int] NULL,
[last_mod_by] [binary] (16) NULL,
[tenant] [binary] (16) NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[chg_template] ADD CONSTRAINT [XPKchg_template] PRIMARY KEY CLUSTERED ([id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [chg_template_x1] ON [dbo].[chg_template] ([template_class]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [chg_template_x0] ON [dbo].[chg_template] ([template_name], [tenant]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [chg_template_x2] ON [dbo].[chg_template] ([tenant]) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[chg_template] TO [service_desk_admin_group]
GRANT INSERT ON  [dbo].[chg_template] TO [service_desk_admin_group]
GRANT DELETE ON  [dbo].[chg_template] TO [service_desk_admin_group]
GRANT UPDATE ON  [dbo].[chg_template] TO [service_desk_admin_group]
GO
Uses