Tables [dbo].[SystemEmail]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)16
Created7:24:24 AM Friday, December 7, 2018
Last Modified9:45:08 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_SystemEmail: SystemEmailIDSystemEmailIDint4
No
1 - 1
Foreign Keys FK_SystemEmail_SystemEmailType: [dbo].[SystemEmailType].SystemEmailTypeFIDIndexes IX_SystemEmail_SystemEmailTypeFID: SystemEmailTypeFIDSystemEmailTypeFIDint4
No
Subjectnvarchar(255)510
No
BodyTextnvarchar(max)max
No
UsageNotevarchar(255)255
Yes
HyperLinkTextnvarchar(40)80
Yes
ValidTagsvarchar(512)512
Yes
Indexes Indexes
NameColumnsUnique
Primary Key PK_SystemEmail: SystemEmailIDPK_SystemEmailSystemEmailID
Yes
IX_SystemEmail_SystemEmailTypeFIDSystemEmailTypeFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_SystemEmail_SystemEmailTypeSystemEmailTypeFID->[dbo].[SystemEmailType].[SystemEmailTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[SystemEmail]
(
[SystemEmailID] [int] NOT NULL IDENTITY(1, 1),
[SystemEmailTypeFID] [int] NOT NULL,
[Subject] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[BodyText] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[UsageNote] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[HyperLinkText] [nvarchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ValidTags] [varchar] (512) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[SystemEmail] ADD CONSTRAINT [PK_SystemEmail] PRIMARY KEY NONCLUSTERED  ([SystemEmailID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SystemEmail] ADD CONSTRAINT [IX_SystemEmail_SystemEmailTypeFID] UNIQUE NONCLUSTERED  ([SystemEmailTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SystemEmail] ADD CONSTRAINT [FK_SystemEmail_SystemEmailType] FOREIGN KEY ([SystemEmailTypeFID]) REFERENCES [dbo].[SystemEmailType] ([SystemEmailTypeID])
GO
GRANT SELECT ON  [dbo].[SystemEmail] TO [MssExec]
GRANT INSERT ON  [dbo].[SystemEmail] TO [MssExec]
GRANT DELETE ON  [dbo].[SystemEmail] TO [MssExec]
GRANT UPDATE ON  [dbo].[SystemEmail] TO [MssExec]
GO
Uses