Tables [dbo].[EmailMessage]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created8:22:03 AM Friday, December 7, 2018
Last Modified9:37:43 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_EmailMessage: EmailMessageIDEmailMessageIDint4
No
1 - 1
UserIDint4
No
OrderIDint4
Yes
ToAddressvarchar(max)max
Yes
Subjectvarchar(255)255
Yes
Bodyvarchar(max)max
Yes
Attachmentsvarchar(max)max
Yes
DisableBccbit1
No
((0))
ThrowExceptionsbit1
No
((0))
DateQueuedUtcdatetime8
No
(getutcdate())
SendSilentlybit1
No
((0))
SendExceptionvarchar(1024)1024
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_EmailMessage: EmailMessageIDPK_EmailMessageEmailMessageID
Yes
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[EmailMessage]
(
[EmailMessageID] [int] NOT NULL IDENTITY(1, 1),
[UserID] [int] NOT NULL,
[OrderID] [int] NULL,
[ToAddress] [varchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Subject] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Body] [varchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Attachments] [varchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DisableBcc] [bit] NOT NULL CONSTRAINT [DF_EmailMessage_DisableBcc] DEFAULT ((0)),
[ThrowExceptions] [bit] NOT NULL CONSTRAINT [DF_EmailMessage_ThrowExceptions] DEFAULT ((0)),
[DateQueuedUtc] [datetime] NOT NULL CONSTRAINT [DF_EmailMessage_DateQueued] DEFAULT (getutcdate()),
[SendSilently] [bit] NOT NULL CONSTRAINT [DF_EmailMessage_SendSilently] DEFAULT ((0)),
[SendException] [varchar] (1024) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[EmailMessage] ADD CONSTRAINT [PK_EmailMessage] PRIMARY KEY CLUSTERED  ([EmailMessageID]) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[EmailMessage] TO [MssExec]
GRANT INSERT ON  [dbo].[EmailMessage] TO [MssExec]
GRANT DELETE ON  [dbo].[EmailMessage] TO [MssExec]
GRANT UPDATE ON  [dbo].[EmailMessage] TO [MssExec]
GO
Uses