Tables [dbo].[not_log]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count202087
Created11:07:23 AM Wednesday, March 07, 2007
Last Modified4:36:05 PM Wednesday, March 24, 2010
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key XPKnot_log: ididint4
No
delint4
No
last_modint4
Yes
nlh_hdrnvarchar(255)510
Yes
nlh_msgntextmax
Yes
nlh_msg_htmlntextmax
Yes
nlh_c_aliasbinary(16)16
Yes
Indexes not_log_x0: nlh_c_addressee\nlh_startIndexes not_log_x1: nlh_status\nlh_c_addressee\cmth_usednlh_c_addresseebinary(16)16
Yes
nlh_emailnvarchar(50)100
Yes
nlh_cm_methodint4
Yes
nlh_transitionint4
Yes
nlh_priint4
Yes
nlh_typeint4
Yes
nlh_ack_timeint4
Yes
Indexes not_log_x1: nlh_status\nlh_c_addressee\cmth_usednlh_statusint4
Yes
nlh_user_acknvarchar(40)80
Yes
Indexes not_log_x0: nlh_c_addressee\nlh_startnlh_startint4
No
nlh_ack_byint4
Yes
nlh_endint4
Yes
Indexes not_log_x2: cntxt_objcntxt_objnvarchar(60)120
Yes
Indexes not_log_x1: nlh_status\nlh_c_addressee\cmth_usedcmth_usedint4
Yes
Indexes not_log_x3: tenanttenantbinary(16)16
Yes
Indexes not_log_x4: context_instancecontext_instancenvarchar(60)120
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKnot_log: idXPKnot_logid
Yes
not_log_x0nlh_c_addressee, nlh_start
not_log_x1nlh_status, nlh_c_addressee, cmth_used
not_log_x2cntxt_obj
not_log_x3tenant
not_log_x4context_instance
Permissions
TypeActionOwning Principal
GrantDeleteservice_desk_admin_group
GrantInsertservice_desk_admin_group
GrantSelectservice_desk_admin_group
GrantUpdateservice_desk_admin_group
SQL Script
CREATE TABLE [dbo].[not_log]
(
[id] [int] NOT NULL,
[del] [int] NOT NULL,
[last_mod] [int] NULL,
[nlh_hdr] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[nlh_msg] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[nlh_msg_html] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[nlh_c_alias] [binary] (16) NULL,
[nlh_c_addressee] [binary] (16) NULL,
[nlh_email] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[nlh_cm_method] [int] NULL,
[nlh_transition] [int] NULL,
[nlh_pri] [int] NULL,
[nlh_type] [int] NULL,
[nlh_ack_time] [int] NULL,
[nlh_status] [int] NULL,
[nlh_user_ack] [nvarchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[nlh_start] [int] NOT NULL,
[nlh_ack_by] [int] NULL,
[nlh_end] [int] NULL,
[cntxt_obj] [nvarchar] (60) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[cmth_used] [int] NULL,
[tenant] [binary] (16) NULL,
[context_instance] [nvarchar] (60) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[not_log] ADD CONSTRAINT [XPKnot_log] PRIMARY KEY CLUSTERED ([id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [not_log_x2] ON [dbo].[not_log] ([cntxt_obj]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [not_log_x4] ON [dbo].[not_log] ([context_instance]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [not_log_x0] ON [dbo].[not_log] ([nlh_c_addressee], [nlh_start]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [not_log_x1] ON [dbo].[not_log] ([nlh_status], [nlh_c_addressee], [cmth_used]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [not_log_x3] ON [dbo].[not_log] ([tenant]) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[not_log] TO [service_desk_admin_group]
GRANT INSERT ON  [dbo].[not_log] TO [service_desk_admin_group]
GRANT DELETE ON  [dbo].[not_log] TO [service_desk_admin_group]
GRANT UPDATE ON  [dbo].[not_log] TO [service_desk_admin_group]
GO
Uses