Tables [dbo].[CustomerNoteHeader]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created7:07:56 PM Thursday, December 17, 2009
Last Modified11:13:38 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_CustomerNoteHeader: CustomerNoteHeaderIDCustomerNoteHeaderIDint4
No
1 - 1
Indexes IX_CustomerNoteHeader_CustomerNumber: CustomerNumberCustomerNumbervarchar(15)15
No
Foreign Keys FK_CustomerNoteHeader_NoteType: [dbo].[NoteType].NoteTypeFIDNoteTypeFIDsmallint2
No
Subjectvarchar(256)256
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_CustomerNoteHeader: CustomerNoteHeaderIDPK_CustomerNoteHeaderCustomerNoteHeaderID
Yes
80
IX_CustomerNoteHeader_CustomerNumberCustomerNumber80
Foreign Keys Foreign Keys
NameColumns
FK_CustomerNoteHeader_NoteTypeNoteTypeFID->[dbo].[NoteType].[NoteTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[CustomerNoteHeader]
(
[CustomerNoteHeaderID] [int] NOT NULL IDENTITY(1, 1),
[CustomerNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[NoteTypeFID] [smallint] NOT NULL,
[Subject] [varchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerNoteHeader] ADD CONSTRAINT [PK_CustomerNoteHeader] PRIMARY KEY CLUSTERED  ([CustomerNoteHeaderID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_CustomerNoteHeader_CustomerNumber] ON [dbo].[CustomerNoteHeader] ([CustomerNumber]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerNoteHeader] ADD CONSTRAINT [FK_CustomerNoteHeader_NoteType] FOREIGN KEY ([NoteTypeFID]) REFERENCES [dbo].[NoteType] ([NoteTypeID])
GO
GRANT SELECT ON  [dbo].[CustomerNoteHeader] TO [MssExec]
GRANT INSERT ON  [dbo].[CustomerNoteHeader] TO [MssExec]
GRANT DELETE ON  [dbo].[CustomerNoteHeader] TO [MssExec]
GRANT UPDATE ON  [dbo].[CustomerNoteHeader] TO [MssExec]
GO
Uses
Used By