Tables [dbo].[Holiday]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created8:23:17 AM Friday, December 7, 2018
Last Modified8:34:30 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_Holiday: HolidayIDIndexes IX_Holiday_Name: HolidayID\NameHolidayIDint4
No
1 - 1
Indexes IX_Holiday_Name: HolidayID\NameNamevarchar(9)9
No
Indexes IX_Holiday_Date: DateDatedate3
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_Holiday: HolidayIDPK_HolidayHolidayID
Yes
IX_Holiday_DateDate
Yes
IX_Holiday_NameHolidayID, Name
Yes
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[Holiday]
(
[HolidayID] [int] NOT NULL IDENTITY(1, 1),
[Name] [varchar] (9) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Date] [date] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Holiday] ADD CONSTRAINT [PK_Holiday] PRIMARY KEY CLUSTERED  ([HolidayID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Holiday] ADD CONSTRAINT [IX_Holiday_Date] UNIQUE NONCLUSTERED  ([Date]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Holiday] ADD CONSTRAINT [IX_Holiday_Name] UNIQUE NONCLUSTERED  ([HolidayID], [Name]) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[Holiday] TO [MssExec]
GRANT INSERT ON  [dbo].[Holiday] TO [MssExec]
GRANT DELETE ON  [dbo].[Holiday] TO [MssExec]
GRANT UPDATE ON  [dbo].[Holiday] TO [MssExec]
GO
Uses
Used By