[dbo].[PMImportDetailError]
CREATE TABLE [dbo].[PMImportDetailError]
(
[PMImportDetailErrorID] [int] NOT NULL IDENTITY(1, 1),
[PMImportDetailFID] [int] NOT NULL,
[ErrorCodeFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PMImportDetailError] ADD CONSTRAINT [FK_PMImportDetailError_ErrorCode] FOREIGN KEY ([ErrorCodeFID]) REFERENCES [dbo].[ErrorCode] ([ECPriKey])
GO
ALTER TABLE [dbo].[PMImportDetailError] ADD CONSTRAINT [FK_PMImportDetailError_PMImportDetail] FOREIGN KEY ([PMImportDetailFID]) REFERENCES [dbo].[PMImportDetail] ([PMImportDetailID])
GO
GRANT SELECT ON [dbo].[PMImportDetailError] TO [MssExec]
GRANT INSERT ON [dbo].[PMImportDetailError] TO [MssExec]
GRANT DELETE ON [dbo].[PMImportDetailError] TO [MssExec]
GRANT UPDATE ON [dbo].[PMImportDetailError] TO [MssExec]
GO