Tables [dbo].[response]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count3
Created11:07:27 AM Wednesday, March 07, 2007
Last Modified9:08:57 PM Friday, December 05, 2008
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key XPKresponse: ididint4
No
delint4
No
persidnvarchar(30)60
Yes
Indexes response_x0: sym\tenantsymnvarchar(60)120
Yes
responsenvarchar(1000)2000
Yes
Indexes response_x1: response_ownerresponse_ownerbinary(16)16
Yes
last_mod_dtint4
Yes
last_mod_bybinary(16)16
Yes
Indexes response_x2: cr_flagcr_flagint4
Yes
Indexes response_x3: in_flagin_flagint4
Yes
Indexes response_x4: pr_flagpr_flagint4
Yes
Indexes response_x5: chg_flagchg_flagint4
Yes
Indexes response_x6: iss_flagiss_flagint4
Yes
Indexes response_x0: sym\tenantIndexes response_x7: tenanttenantbinary(16)16
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKresponse: idXPKresponseid
Yes
response_x0sym, tenant
Yes
response_x1response_owner
response_x2cr_flag
response_x3in_flag
response_x4pr_flag
response_x5chg_flag
response_x6iss_flag
response_x7tenant
Permissions
TypeActionOwning Principal
GrantDeleteservice_desk_admin_group
GrantInsertservice_desk_admin_group
GrantSelectservice_desk_admin_group
GrantUpdateservice_desk_admin_group
GrantSelectservice_desk_ro_group
SQL Script
CREATE TABLE [dbo].[response]
(
[id] [int] NOT NULL,
[del] [int] NOT NULL,
[persid] [nvarchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[sym] [nvarchar] (60) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[response] [nvarchar] (1000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[response_owner] [binary] (16) NULL,
[last_mod_dt] [int] NULL,
[last_mod_by] [binary] (16) NULL,
[cr_flag] [int] NULL,
[in_flag] [int] NULL,
[pr_flag] [int] NULL,
[chg_flag] [int] NULL,
[iss_flag] [int] NULL,
[tenant] [binary] (16) NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[response] ADD CONSTRAINT [XPKresponse] PRIMARY KEY CLUSTERED ([id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [response_x5] ON [dbo].[response] ([chg_flag]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [response_x2] ON [dbo].[response] ([cr_flag]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [response_x3] ON [dbo].[response] ([in_flag]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [response_x6] ON [dbo].[response] ([iss_flag]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [response_x4] ON [dbo].[response] ([pr_flag]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [response_x1] ON [dbo].[response] ([response_owner]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [response_x0] ON [dbo].[response] ([sym], [tenant]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [response_x7] ON [dbo].[response] ([tenant]) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[response] TO [service_desk_admin_group]
GRANT INSERT ON  [dbo].[response] TO [service_desk_admin_group]
GRANT DELETE ON  [dbo].[response] TO [service_desk_admin_group]
GRANT UPDATE ON  [dbo].[response] TO [service_desk_admin_group]
GRANT SELECT ON  [dbo].[response] TO [service_desk_ro_group]
GO
Uses