Tables [dbo].[DayInWeek]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)7
Created7:27:27 AM Friday, December 7, 2018
Last Modified8:22:04 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_DayInWeek: DayInWeekIDDayInWeekIDint4
No
1 - 1
Indexes IX_DayInWeek_DayInWeekName: DayInWeekNameDayInWeekNamevarchar(16)16
No
Indexes IX_DayInWeek_NumericValue: NumericValueNumericValueint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_DayInWeek: DayInWeekIDPK_DayInWeekDayInWeekID
Yes
IX_DayInWeek_NumericValueNumericValue
Yes
IX_DayInWeek_DayInWeekNameDayInWeekName
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
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
Uses
Used By