CREATE TABLE [dbo].[MssWebErrorLog]
(
[MssWebErrorLogId] [int] NOT NULL IDENTITY(1, 1),
[Message] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[MessageTemplate] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Level] [nvarchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TimeStamp] [datetime] NOT NULL,
[Exception] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Properties] [xml] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[MssWebErrorLog] ADD CONSTRAINT [PK_MssWebErrorLog] PRIMARY KEY CLUSTERED ([MssWebErrorLogId]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[MssWebErrorLog] TO [MssExec]
GRANT INSERT ON [dbo].[MssWebErrorLog] TO [MssExec]
GRANT DELETE ON [dbo].[MssWebErrorLog] TO [MssExec]
GRANT UPDATE ON [dbo].[MssWebErrorLog] TO [MssExec]
GO