Tables [dbo].[OrderNoteDetail]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)35348
Created5:01:53 PM Tuesday, November 4, 2008
Last Modified10:03:28 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_OrderNoteDetail: OrderNoteDetailIDOrderNoteDetailIDint4
No
1 - 1
Foreign Keys FK_OrderNoteDetail_OrderNoteHeader: [dbo].[OrderNoteHeader].OrderNoteHeaderFIDIndexes IX_OrderNoteDetail_OrderNoteHeaderFID: OrderNoteHeaderFIDOrderNoteHeaderFIDint4
No
CreatedDatedatetime8
No
Foreign Keys FK_OrderNoteDetail_Sysuser: [dbo].[Sysuser].CreatedByFIDIndexes IX_OrderNoteDetail_CreatedByFID: CreatedByFIDCreatedByFIDint4
No
NoteBodytextmax
No
Foreign Keys FK_OrderNoteDetail_LocServ: [dbo].[LocServ].LocalServiceFIDIndexes IX_OrderNoteDetail_LocalServiceFID: LocalServiceFIDLocalServiceFIDint4
Yes
PublicFlagbit1
No
NoteXmlxmlmax
Yes
LineNumberint4
Yes
SendToVanlinebit1
Yes
Initialsvarchar(4)4
Yes
VanlinePublicFlagbit1
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_OrderNoteDetail: OrderNoteDetailIDPK_OrderNoteDetailOrderNoteDetailID
Yes
80
IX_OrderNoteDetail_CreatedByFIDCreatedByFID
IX_OrderNoteDetail_LocalServiceFIDLocalServiceFID80
IX_OrderNoteDetail_OrderNoteHeaderFIDOrderNoteHeaderFID80
Foreign Keys Foreign Keys
NameColumns
FK_OrderNoteDetail_SysuserCreatedByFID->[dbo].[Sysuser].[SysUserID]
FK_OrderNoteDetail_LocServLocalServiceFID->[dbo].[LocServ].[PriKey]
FK_OrderNoteDetail_OrderNoteHeaderOrderNoteHeaderFID->[dbo].[OrderNoteHeader].[OrderNoteHeaderID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[OrderNoteDetail]
(
[OrderNoteDetailID] [int] NOT NULL IDENTITY(1, 1),
[OrderNoteHeaderFID] [int] NOT NULL,
[CreatedDate] [datetime] NOT NULL,
[CreatedByFID] [int] NOT NULL,
[NoteBody] [text] COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[LocalServiceFID] [int] NULL,
[PublicFlag] [bit] NOT NULL,
[NoteXml] [xml] NULL,
[LineNumber] [int] NULL,
[SendToVanline] [bit] NULL,
[Initials] [varchar] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[VanlinePublicFlag] [bit] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderNoteDetail] ADD CONSTRAINT [PK_OrderNoteDetail] PRIMARY KEY CLUSTERED  ([OrderNoteDetailID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_OrderNoteDetail_CreatedByFID] ON [dbo].[OrderNoteDetail] ([CreatedByFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_OrderNoteDetail_LocalServiceFID] ON [dbo].[OrderNoteDetail] ([LocalServiceFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_OrderNoteDetail_OrderNoteHeaderFID] ON [dbo].[OrderNoteDetail] ([OrderNoteHeaderFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderNoteDetail] ADD CONSTRAINT [FK_OrderNoteDetail_Sysuser] FOREIGN KEY ([CreatedByFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[OrderNoteDetail] ADD CONSTRAINT [FK_OrderNoteDetail_LocServ] FOREIGN KEY ([LocalServiceFID]) REFERENCES [dbo].[LocServ] ([PriKey])
GO
ALTER TABLE [dbo].[OrderNoteDetail] ADD CONSTRAINT [FK_OrderNoteDetail_OrderNoteHeader] FOREIGN KEY ([OrderNoteHeaderFID]) REFERENCES [dbo].[OrderNoteHeader] ([OrderNoteHeaderID])
GO
GRANT SELECT ON  [dbo].[OrderNoteDetail] TO [MssExec]
GRANT INSERT ON  [dbo].[OrderNoteDetail] TO [MssExec]
GRANT DELETE ON  [dbo].[OrderNoteDetail] TO [MssExec]
GRANT UPDATE ON  [dbo].[OrderNoteDetail] TO [MssExec]
GO
Uses
Used By