Tables [dbo].[OutgoingEmail]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created9:11:50 AM Thursday, May 23, 2024
Last Modified9:11:50 AM Thursday, May 23, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_OutgoingEmailID: OutgoingEmailIDOutgoingEmailIDint4
No
1 - 1
FromAddressnvarchar(120)240
No
FromNamenvarchar(120)240
Yes
ReplyToAddressnvarchar(120)240
Yes
ReplyToNamenvarchar(120)240
Yes
Subjectnvarchar(998)1996
Yes
EmailContentnvarchar(max)max
Yes
Check Constraints CK_OutgoingEmail_BodyFormat : ([BodyFormat]='TEXT' OR [BodyFormat]='HTML')BodyFormatvarchar(16)16
No
EstimatedByteLengthint4
Yes
Foreign Keys FK_OutgoingEmail_SysUser: [dbo].[Sysuser].SysUserFIDIndexes IX_OutgoingEmail_SysUserFID: SysUserFIDSysUserFIDint4
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_OutgoingEmailID: OutgoingEmailIDPK_OutgoingEmailIDOutgoingEmailID
Yes
IX_OutgoingEmail_SysUserFIDSysUserFID
Check Constraints Check Constraints
NameOn ColumnConstraint
CK_OutgoingEmail_BodyFormatBodyFormat([BodyFormat]='TEXT' OR [BodyFormat]='HTML')
Foreign Keys Foreign Keys
NameDeleteColumns
FK_OutgoingEmail_SysUserSetNullSysUserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[OutgoingEmail]
(
[OutgoingEmailID] [int] NOT NULL IDENTITY(1, 1),
[FromAddress] [nvarchar] (120) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[FromName] [nvarchar] (120) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ReplyToAddress] [nvarchar] (120) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ReplyToName] [nvarchar] (120) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Subject] [nvarchar] (998) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[EmailContent] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[BodyFormat] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[EstimatedByteLength] [int] NULL,
[SysUserFID] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmail] ADD CONSTRAINT [CK_OutgoingEmail_BodyFormat] CHECK (([BodyFormat]='TEXT' OR [BodyFormat]='HTML'))
GO
ALTER TABLE [dbo].[OutgoingEmail] ADD CONSTRAINT [PK_OutgoingEmailID] PRIMARY KEY CLUSTERED  ([OutgoingEmailID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_OutgoingEmail_SysUserFID] ON [dbo].[OutgoingEmail] ([SysUserFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmail] ADD CONSTRAINT [FK_OutgoingEmail_SysUser] FOREIGN KEY ([SysUserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID]) ON DELETE SET NULL
GO
GRANT SELECT ON  [dbo].[OutgoingEmail] TO [MssExec]
GRANT INSERT ON  [dbo].[OutgoingEmail] TO [MssExec]
GRANT DELETE ON  [dbo].[OutgoingEmail] TO [MssExec]
GRANT UPDATE ON  [dbo].[OutgoingEmail] TO [MssExec]
GO
Uses
Used By