[dbo].[RevenueRatingImportErrors]
CREATE TABLE [dbo].[RevenueRatingImportErrors]
(
[RevenueRatingImportErrorsID] [int] NOT NULL IDENTITY(1, 1),
[ErrorCodeFID] [int] NULL,
[Description] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[OrdersFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueRatingImportErrors] ADD CONSTRAINT [PK_RevenueRatingImportErrors] PRIMARY KEY NONCLUSTERED ([RevenueRatingImportErrorsID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_RevenueRatingImportErrors_OrdersFID] ON [dbo].[RevenueRatingImportErrors] ([OrdersFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueRatingImportErrors] ADD CONSTRAINT [FK_RevenueRatingImportErrors_ErrorCode] FOREIGN KEY ([ErrorCodeFID]) REFERENCES [dbo].[ErrorCode] ([ECPriKey])
GO
ALTER TABLE [dbo].[RevenueRatingImportErrors] ADD CONSTRAINT [FK_RevenueRatingImportErrors_Orders] FOREIGN KEY ([OrdersFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON [dbo].[RevenueRatingImportErrors] TO [MssExec]
GRANT INSERT ON [dbo].[RevenueRatingImportErrors] TO [MssExec]
GRANT DELETE ON [dbo].[RevenueRatingImportErrors] TO [MssExec]
GRANT UPDATE ON [dbo].[RevenueRatingImportErrors] TO [MssExec]
GO