Tables [dbo].[usp_target_time_tpl]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count0
Created4:36:16 PM Wednesday, March 24, 2010
Last Modified4:36:16 PM Wednesday, March 24, 2010
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK__usp_target_time___60924D76: ididint4
No
delint4
No
Indexes usp_target_time_tpl_X2: sym\tenantsymnvarchar(60)120
No
last_mod_dtint4
Yes
last_mod_bybinary(16)16
Yes
Indexes usp_target_time_tpl_X2: sym\tenanttenantbinary(16)16
Yes
target_durationint4
No
conditionnvarchar(30)60
Yes
condition_outcomeint4
Yes
Indexes usp_target_time_tpl_X1: object_typeobject_typenvarchar(30)60
No
set_actualint4
Yes
reset_actualint4
Yes
Indexes usp_target_time_tpl_X0: costcostnvarchar(255)510
Yes
work_shiftnvarchar(30)60
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK__usp_target_time___60924D76: idPK__usp_target_time___60924D76id
Yes
usp_target_time_tpl_X2sym, tenant
Yes
usp_target_time_tpl_X0cost
usp_target_time_tpl_X1object_type
Permissions
TypeActionOwning Principal
GrantDeleteservice_desk_admin_group
GrantInsertservice_desk_admin_group
GrantSelectservice_desk_admin_group
GrantUpdateservice_desk_admin_group
GrantSelectservice_desk_ro_group
Extended Properties
NameValue
CommentAdded r12.5
SQL Script
CREATE TABLE [dbo].[usp_target_time_tpl]
(
[id] [int] NOT NULL,
[del] [int] NOT NULL,
[sym] [nvarchar] (60) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[last_mod_dt] [int] NULL,
[last_mod_by] [binary] (16) NULL,
[tenant] [binary] (16) NULL,
[target_duration] [int] NOT NULL,
[condition] [nvarchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[condition_outcome] [int] NULL,
[object_type] [nvarchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[set_actual] [int] NULL,
[reset_actual] [int] NULL,
[cost] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[work_shift] [nvarchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usp_target_time_tpl] ADD CONSTRAINT [PK__usp_target_time___60924D76] PRIMARY KEY CLUSTERED ([id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [usp_target_time_tpl_X0] ON [dbo].[usp_target_time_tpl] ([cost]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [usp_target_time_tpl_X1] ON [dbo].[usp_target_time_tpl] ([object_type]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [usp_target_time_tpl_X2] ON [dbo].[usp_target_time_tpl] ([sym], [tenant]) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[usp_target_time_tpl] TO [service_desk_admin_group]
GRANT INSERT ON  [dbo].[usp_target_time_tpl] TO [service_desk_admin_group]
GRANT DELETE ON  [dbo].[usp_target_time_tpl] TO [service_desk_admin_group]
GRANT UPDATE ON  [dbo].[usp_target_time_tpl] TO [service_desk_admin_group]
GRANT SELECT ON  [dbo].[usp_target_time_tpl] TO [service_desk_ro_group]
GO
EXEC sp_addextendedproperty N'Comment', N'Added r12.5', 'SCHEMA', N'dbo', 'TABLE', N'usp_target_time_tpl', NULL, NULL
GO
Uses