Tables [dbo].[survey_qtpl]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count3
Created11:07:32 AM Wednesday, March 07, 2007
Last Modified9:09:03 PM Friday, December 05, 2008
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key XPKsurvey_qtpl: ididint4
No
persidnvarchar(30)60
Yes
delint4
No
txtnvarchar(400)800
Yes
Indexes survey_qtpl_x0: owning_survey\sequence\tenantsequenceint4
No
Indexes survey_qtpl_x0: owning_survey\sequence\tenantowning_surveyint4
Yes
last_mod_dtint4
Yes
last_mod_bybinary(16)16
Yes
resp_requiredint4
Yes
include_qcommentint4
Yes
mult_resp_flagint4
Yes
qcomment_labelnvarchar(80)160
Yes
Indexes survey_qtpl_x0: owning_survey\sequence\tenantIndexes survey_qtpl_x1: tenanttenantbinary(16)16
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKsurvey_qtpl: idXPKsurvey_qtplid
Yes
survey_qtpl_x0owning_survey, sequence, tenant
Yes
survey_qtpl_x1tenant
Permissions
TypeActionOwning Principal
GrantDeleteservice_desk_admin_group
GrantInsertservice_desk_admin_group
GrantSelectservice_desk_admin_group
GrantUpdateservice_desk_admin_group
SQL Script
CREATE TABLE [dbo].[survey_qtpl]
(
[id] [int] NOT NULL,
[persid] [nvarchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[del] [int] NOT NULL,
[txt] [nvarchar] (400) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[sequence] [int] NOT NULL,
[owning_survey] [int] NULL,
[last_mod_dt] [int] NULL,
[last_mod_by] [binary] (16) NULL,
[resp_required] [int] NULL,
[include_qcomment] [int] NULL,
[mult_resp_flag] [int] NULL,
[qcomment_label] [nvarchar] (80) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[tenant] [binary] (16) NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[survey_qtpl] ADD CONSTRAINT [XPKsurvey_qtpl] PRIMARY KEY CLUSTERED ([id]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [survey_qtpl_x0] ON [dbo].[survey_qtpl] ([owning_survey], [sequence], [tenant]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [survey_qtpl_x1] ON [dbo].[survey_qtpl] ([tenant]) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[survey_qtpl] TO [service_desk_admin_group]
GRANT INSERT ON  [dbo].[survey_qtpl] TO [service_desk_admin_group]
GRANT DELETE ON  [dbo].[survey_qtpl] TO [service_desk_admin_group]
GRANT UPDATE ON  [dbo].[survey_qtpl] TO [service_desk_admin_group]
GO
Uses