CREATE TABLE [dbo].[XmlSystemOptions]
(
[XmlSystemFID] [int] NOT NULL,
[Name] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Value] [varchar] (4096) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[XmlSystemOptionsID] [int] NOT NULL IDENTITY(1, 1)
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlSystemOptions] ADD CONSTRAINT [PK_XmlSystemOptions] PRIMARY KEY CLUSTERED ([XmlSystemOptionsID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlSystemOptions] ADD CONSTRAINT [IX_XmlSystemOptions] UNIQUE NONCLUSTERED ([XmlSystemFID], [Name]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlSystemOptions] ADD CONSTRAINT [FK_XmlSystemOptions_XmlSystem] FOREIGN KEY ([XmlSystemFID]) REFERENCES [dbo].[XmlSystem] ([XmlSystemID])
GO
GRANT SELECT ON [dbo].[XmlSystemOptions] TO [MssExec]
GRANT INSERT ON [dbo].[XmlSystemOptions] TO [MssExec]
GRANT DELETE ON [dbo].[XmlSystemOptions] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlSystemOptions] TO [MssExec]
GO