Tables [dbo].[arg_evnotify]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count0
Created12:30:43 PM Sunday, December 05, 2010
Last Modified10:34:31 PM Thursday, February 10, 2011
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key XPKarg_evnotify: nyerid\nyidForeign Keys NYERJOIN01: [dbo].[arg_evrem].nyeridnyeridint4
No
Cluster Primary Key XPKarg_evnotify: nyerid\nyidIndexes nyindex03: nyidnyidsmallint2
No
nysyssmallint2
Yes
nytypesmallint2
Yes
nytextnvarchar(3700)7400
Yes
nyissudtdatetime8
Yes
nyrecipnvarchar(50)100
Yes
nyrtypesmallint2
Yes
Foreign Keys ERINJOIN02: [dbo].[ca_contact].contact_uuidIndexes nyindex02: contact_uuidcontact_uuidbinary(16)16
Yes
nysndatedatetime8
Yes
nyrvdatedatetime8
Yes
nyrvfromnvarchar(50)100
Yes
nyrvtypesmallint2
Yes
nycpdatedatetime8
Yes
creation_usernvarchar(64)128
Yes
creation_dateint4
Yes
last_update_usernvarchar(64)128
Yes
last_update_dateint4
Yes
version_numberint4
Yes
('0')
Foreign Keys FK_ARG_EVNOTIFY_TENANT: [dbo].[ca_tenant].tenanttenantbinary(16)16
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKarg_evnotify: nyerid\nyidXPKarg_evnotifynyerid, nyid
Yes
nyindex02contact_uuid
nyindex03nyid
Foreign Keys Foreign Keys
NameColumns
ERINJOIN02contact_uuid->[dbo].[ca_contact].[contact_uuid]
FK_ARG_EVNOTIFY_TENANTtenant->[dbo].[ca_tenant].[id]
NYERJOIN01nyerid->[dbo].[arg_evrem].[erid]
Permissions
TypeActionOwning Principal
GrantDeleteswcmadmin
GrantInsertswcmadmin
GrantSelectswcmadmin
GrantUpdateswcmadmin
SQL Script
CREATE TABLE [dbo].[arg_evnotify]
(
[nyerid] [int] NOT NULL,
[nyid] [smallint] NOT NULL,
[nysys] [smallint] NULL,
[nytype] [smallint] NULL,
[nytext] [nvarchar] (3700) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[nyissudt] [datetime] NULL,
[nyrecip] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[nyrtype] [smallint] NULL,
[contact_uuid] [binary] (16) NULL,
[nysndate] [datetime] NULL,
[nyrvdate] [datetime] NULL,
[nyrvfrom] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[nyrvtype] [smallint] NULL,
[nycpdate] [datetime] NULL,
[creation_user] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[creation_date] [int] NULL,
[last_update_user] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[last_update_date] [int] NULL,
[version_number] [int] NULL CONSTRAINT [DF__arg_evnot__versi__7AF13DF7] DEFAULT ('0'),
[tenant] [binary] (16) NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[arg_evnotify] ADD CONSTRAINT [XPKarg_evnotify] PRIMARY KEY CLUSTERED ([nyerid], [nyid]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [nyindex02] ON [dbo].[arg_evnotify] ([contact_uuid]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [nyindex03] ON [dbo].[arg_evnotify] ([nyid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[arg_evnotify] ADD CONSTRAINT [ERINJOIN02] FOREIGN KEY ([contact_uuid]) REFERENCES [dbo].[ca_contact] ([contact_uuid])
GO
ALTER TABLE [dbo].[arg_evnotify] ADD CONSTRAINT [FK_ARG_EVNOTIFY_TENANT] FOREIGN KEY ([tenant]) REFERENCES [dbo].[ca_tenant] ([id])
GO
ALTER TABLE [dbo].[arg_evnotify] ADD CONSTRAINT [NYERJOIN01] FOREIGN KEY ([nyerid]) REFERENCES [dbo].[arg_evrem] ([erid])
GO
GRANT SELECT ON  [dbo].[arg_evnotify] TO [swcmadmin]
GRANT INSERT ON  [dbo].[arg_evnotify] TO [swcmadmin]
GRANT DELETE ON  [dbo].[arg_evnotify] TO [swcmadmin]
GRANT UPDATE ON  [dbo].[arg_evnotify] TO [swcmadmin]
GO
Uses
Used By