Tables [dbo].[g_chg_queue]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count0
Created11:07:15 AM Wednesday, March 07, 2007
Last Modified9:08:51 PM Friday, December 05, 2008
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key XPKg_chg_queue: ididint4
No
Indexes g_chg_queue_x1: remote_sys_id\remote_idremote_sys_idint4
No
Indexes g_chg_queue_x1: remote_sys_id\remote_idremote_idint4
No
Indexes g_chg_queue_x3: assignee\active_flagIndexes g_chg_queue_x5: category\active_flagIndexes g_chg_queue_x2: global_queue_id\active_flagIndexes g_chg_queue_x4: group_id\active_flagactive_flagint4
No
last_mod_dtint4
No
Indexes g_chg_queue_x2: global_queue_id\active_flagglobal_queue_idint4
Yes
Indexes g_chg_queue_x0: open_date\chg_ref_numchg_ref_numnvarchar(30)60
No
statusnvarchar(30)60
No
priorityint4
No
impactint4
Yes
Indexes g_chg_queue_x0: open_date\chg_ref_numopen_dateint4
No
close_dateint4
Yes
Indexes g_chg_queue_x5: category\active_flagcategorynvarchar(30)60
Yes
summarynvarchar(240)480
Yes
Indexes g_chg_queue_x4: group_id\active_flaggroup_idbinary(16)16
Yes
Indexes g_chg_queue_x3: assignee\active_flagassigneebinary(16)16
Yes
requestorbinary(16)16
No
affected_contactbinary(16)16
No
Indexes g_chg_queue_x6: remote_tenantremote_tenantbinary(16)16
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKg_chg_queue: idXPKg_chg_queueid
Yes
g_chg_queue_x1remote_sys_id, remote_id
Yes
g_chg_queue_x0open_date, chg_ref_num
g_chg_queue_x2global_queue_id, active_flag
g_chg_queue_x3assignee, active_flag
g_chg_queue_x4group_id, active_flag
g_chg_queue_x5category, active_flag
g_chg_queue_x6remote_tenant
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].[g_chg_queue]
(
[id] [int] NOT NULL,
[remote_sys_id] [int] NOT NULL,
[remote_id] [int] NOT NULL,
[active_flag] [int] NOT NULL,
[last_mod_dt] [int] NOT NULL,
[global_queue_id] [int] NULL,
[chg_ref_num] [nvarchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[status] [nvarchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[priority] [int] NOT NULL,
[impact] [int] NULL,
[open_date] [int] NOT NULL,
[close_date] [int] NULL,
[category] [nvarchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[summary] [nvarchar] (240) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[group_id] [binary] (16) NULL,
[assignee] [binary] (16) NULL,
[requestor] [binary] (16) NOT NULL,
[affected_contact] [binary] (16) NOT NULL,
[remote_tenant] [binary] (16) NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[g_chg_queue] ADD CONSTRAINT [XPKg_chg_queue] PRIMARY KEY CLUSTERED ([id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [g_chg_queue_x3] ON [dbo].[g_chg_queue] ([assignee], [active_flag]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [g_chg_queue_x5] ON [dbo].[g_chg_queue] ([category], [active_flag]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [g_chg_queue_x2] ON [dbo].[g_chg_queue] ([global_queue_id], [active_flag]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [g_chg_queue_x4] ON [dbo].[g_chg_queue] ([group_id], [active_flag]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [g_chg_queue_x0] ON [dbo].[g_chg_queue] ([open_date], [chg_ref_num]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [g_chg_queue_x1] ON [dbo].[g_chg_queue] ([remote_sys_id], [remote_id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [g_chg_queue_x6] ON [dbo].[g_chg_queue] ([remote_tenant]) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[g_chg_queue] TO [service_desk_admin_group]
GRANT INSERT ON  [dbo].[g_chg_queue] TO [service_desk_admin_group]
GRANT DELETE ON  [dbo].[g_chg_queue] TO [service_desk_admin_group]
GRANT UPDATE ON  [dbo].[g_chg_queue] TO [service_desk_admin_group]
GRANT SELECT ON  [dbo].[g_chg_queue] TO [service_desk_ro_group]
GO
Uses