[dbo].[XMLImportErrorCodeOptions]
CREATE TABLE [dbo].[XMLImportErrorCodeOptions]
(
[XMLImportErrorCodeOptionsID] [int] NOT NULL IDENTITY(1, 1),
[ErrorCodeFID] [int] NOT NULL,
[LogError] [bit] NOT NULL CONSTRAINT [DF_XMLImportErrorCodeOptions_LogError] DEFAULT ((1)),
[HaltOnError] [bit] NOT NULL CONSTRAINT [DF_XMLImportErrorCodeOptions_HaltOnError] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XMLImportErrorCodeOptions] ADD CONSTRAINT [PK_XMLImportErrorCodeOptionsID] PRIMARY KEY CLUSTERED ([XMLImportErrorCodeOptionsID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XMLImportErrorCodeOptions] ADD CONSTRAINT [IX_XMLImportErrorCodeOptionsID_ErrorCodeFID] UNIQUE NONCLUSTERED ([ErrorCodeFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XMLImportErrorCodeOptions] ADD CONSTRAINT [FK_XMLImportErrorCodeOptions_ErrorCode] FOREIGN KEY ([ErrorCodeFID]) REFERENCES [dbo].[ErrorCode] ([ECPriKey])
GO
GRANT SELECT ON [dbo].[XMLImportErrorCodeOptions] TO [MssExec]
GRANT INSERT ON [dbo].[XMLImportErrorCodeOptions] TO [MssExec]
GRANT DELETE ON [dbo].[XMLImportErrorCodeOptions] TO [MssExec]
GRANT UPDATE ON [dbo].[XMLImportErrorCodeOptions] TO [MssExec]
GO