CREATE TABLE [dbo].[DayInWeek]
(
[DayInWeekID] [int] NOT NULL IDENTITY(1, 1),
[DayInWeekName] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[NumericValue] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DayInWeek] ADD CONSTRAINT [PK_DayInWeek] PRIMARY KEY CLUSTERED ([DayInWeekID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_DayInWeek_DayInWeekName] ON [dbo].[DayInWeek] ([DayInWeekName]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_DayInWeek_NumericValue] ON [dbo].[DayInWeek] ([NumericValue]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[DayInWeek] TO [MssExec]
GRANT INSERT ON [dbo].[DayInWeek] TO [MssExec]
GRANT DELETE ON [dbo].[DayInWeek] TO [MssExec]
GRANT UPDATE ON [dbo].[DayInWeek] TO [MssExec]
GO