Tables [dbo].[DayNote]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)528
Created4:57:07 PM Thursday, September 7, 2006
Last Modified11:13:39 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_DayNote: DayNoteIDDayNoteIDint4
No
1 - 1
Foreign Keys FK_DayNote_Branch: [dbo].[Branch].BranchFIDIndexes IX_Unique_BranchFID_NoteDate: BranchFID\NoteDateBranchFIDint4
No
Indexes IX_Unique_BranchFID_NoteDate: BranchFID\NoteDateNoteDatedatetime8
No
NoteMemotextmax
No
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_DayNote: DayNoteIDPK_DayNoteDayNoteID
Yes
80
IX_Unique_BranchFID_NoteDateBranchFID, NoteDate
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_DayNote_BranchBranchFID->[dbo].[Branch].[BranchPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[DayNote]
(
[DayNoteID] [int] NOT NULL IDENTITY(1, 1),
[BranchFID] [int] NOT NULL,
[NoteDate] [datetime] NOT NULL,
[NoteMemo] [text] COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[DayNote] ADD CONSTRAINT [PK_DayNote] PRIMARY KEY CLUSTERED  ([DayNoteID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DayNote] ADD CONSTRAINT [IX_Unique_BranchFID_NoteDate] UNIQUE NONCLUSTERED  ([BranchFID], [NoteDate]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DayNote] ADD CONSTRAINT [FK_DayNote_Branch] FOREIGN KEY ([BranchFID]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
GRANT SELECT ON  [dbo].[DayNote] TO [MssExec]
GRANT INSERT ON  [dbo].[DayNote] TO [MssExec]
GRANT DELETE ON  [dbo].[DayNote] TO [MssExec]
GRANT UPDATE ON  [dbo].[DayNote] TO [MssExec]
GO
Uses