CREATE TABLE [dbo].[ErrorCode]
(
[ECPriKey] [int] NOT NULL IDENTITY(1, 1),
[Description] [varchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[spName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[LogLevelFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ErrorCode] ADD CONSTRAINT [PK_ErrorCode] PRIMARY KEY CLUSTERED ([ECPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ErrorCode] ADD CONSTRAINT [FK_ErrorCode_LogLevel] FOREIGN KEY ([LogLevelFID]) REFERENCES [dbo].[LogLevel] ([LogLevelID])
GO
GRANT SELECT ON [dbo].[ErrorCode] TO [MssExec]
GRANT INSERT ON [dbo].[ErrorCode] TO [MssExec]
GRANT DELETE ON [dbo].[ErrorCode] TO [MssExec]
GRANT UPDATE ON [dbo].[ErrorCode] TO [MssExec]
GO